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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-patches by date

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