mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fix minor memory leak introduced in recent SQL-functions hacking: the
DestReceiver created during postquel_start needs to be destroyed during postquel_end. In a moment of brain fade I had assumed this would be taken care of by FreeQueryDesc, but it's not (and shouldn't be).
This commit is contained in:
parent
9858a8c81c
commit
c2138f3caa
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.128 2008/10/31 21:07:55 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.129 2008/11/27 00:10:04 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -501,6 +501,8 @@ postquel_end(execution_state *es)
|
|||||||
PopActiveSnapshot();
|
PopActiveSnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(*es->qd->dest->rDestroy) (es->qd->dest);
|
||||||
|
|
||||||
FreeQueryDesc(es->qd);
|
FreeQueryDesc(es->qd);
|
||||||
es->qd = NULL;
|
es->qd = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user