Skip site navigation (1) Skip section navigation (2)

rtree memory leak patch

From: Kenneth Been <kennethb(at)telocity(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: rtree memory leak patch
Date: 2002-05-24 16:11:45
Message-ID: 3CEE6641.1040801@telocity.com (view raw or flat)
Thread:
Lists: pgsql-patches
Here is a patch for a memory leak in rtree.c, version 7.2.1 (in code
that I submitted last year, alas).

Ken

*** postgresql-7.2.1/src/backend/access/rtree/rtree.c.orig      Thu May 
23 22:24:47 2002
--- postgresql-7.2.1/src/backend/access/rtree/rtree.c   Fri May 24 
09:25:17 2002
***************
*** 931,936 ****
--- 931,938 ----
 
PointerGetDatum(&size_alpha));
                         FunctionCall2(&rtstate->sizeFn, union_dr,
 
PointerGetDatum(&size_beta));
+                       pfree(DatumGetPointer(union_dl));
+                       pfree(DatumGetPointer(union_dr));

                         diff = (size_alpha - size_l) - (size_beta - 
size_r);



Responses

pgsql-patches by date

Next:From: Bear GilesDate: 2002-05-24 19:17:14
Subject: SSL (patch 1)
Previous:From: Dave PageDate: 2002-05-23 07:09:15
Subject: Re: More schema queries

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group