1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-17 06:41:24 +03:00

Fix memory leak in rtdosplit, per report from Clive Page.

This commit is contained in:
Tom Lane 2005-01-24 02:48:15 +00:00
parent dddc2afb6e
commit bb4b504d51

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.80 2003/09/25 06:57:57 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.80.2.1 2005/01/24 02:48:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -594,6 +594,8 @@ rtdosplit(Relation r,
rtup = (IndexTuple) index_formtuple(tupDesc,
&(v.spl_rdatum), isnull);
pfree(isnull);
pfree(DatumGetPointer(v.spl_ldatum));
pfree(DatumGetPointer(v.spl_rdatum));
/* set pointers to new child pages in the internal index tuples */
ItemPointerSet(&(ltup->t_tid), lbknum, 1);