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

Commitc2138f3

Browse files
committed
Fix minor memory leak introduced in recent SQL-functions hacking: the
DestReceiver created during postquel_start needs to be destroyed duringpostquel_end. In a moment of brain fade I had assumed this would be takencare of by FreeQueryDesc, but it's not (and shouldn't be).
1 parent9858a8c commitc2138f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/executor/functions.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/executor/functions.c,v 1.128 2008/10/31 21:07:55 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.129 2008/11/27 00:10:04 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -501,6 +501,8 @@ postquel_end(execution_state *es)
501501
PopActiveSnapshot();
502502
}
503503

504+
(*es->qd->dest->rDestroy) (es->qd->dest);
505+
504506
FreeQueryDesc(es->qd);
505507
es->qd=NULL;
506508
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp