Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ffe9f7

Browse files
committed
Fix memory leak in rtdosplit, per report from Clive Page.
1 parent810de88 commit0ffe9f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/access/rtree/rtree.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.86 2005/01/18 23:25:47 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/rtree/rtree.c,v 1.87 2005/01/24 02:47:26 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -591,6 +591,8 @@ rtdosplit(Relation r,
591591
rtup= (IndexTuple)index_formtuple(tupDesc,
592592
&(v.spl_rdatum),isnull);
593593
pfree(isnull);
594+
pfree(DatumGetPointer(v.spl_ldatum));
595+
pfree(DatumGetPointer(v.spl_rdatum));
594596

595597
/* set pointers to new child pages in the internal index tuples */
596598
ItemPointerSet(&(ltup->t_tid),lbknum,1);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp