Commit 8a946286 authored by Bruce Momjian's avatar Bruce Momjian

Here is a patch for a memory leak in rtree.c, version 7.2.1 (in code

that I submitted last year, alas).

Kenneth Been
parent 393b085a
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.73 2002/06/20 20:29:25 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.74 2002/06/25 17:26:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -931,6 +931,8 @@ rtpicksplit(Relation r,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment