mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Fix memory leak in rtdosplit, per report from Clive Page.
This commit is contained in:
parent
dddc2afb6e
commit
bb4b504d51
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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,
|
rtup = (IndexTuple) index_formtuple(tupDesc,
|
||||||
&(v.spl_rdatum), isnull);
|
&(v.spl_rdatum), isnull);
|
||||||
pfree(isnull);
|
pfree(isnull);
|
||||||
|
pfree(DatumGetPointer(v.spl_ldatum));
|
||||||
|
pfree(DatumGetPointer(v.spl_rdatum));
|
||||||
|
|
||||||
/* set pointers to new child pages in the internal index tuples */
|
/* set pointers to new child pages in the internal index tuples */
|
||||||
ItemPointerSet(&(ltup->t_tid), lbknum, 1);
|
ItemPointerSet(&(ltup->t_tid), lbknum, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user