diff options
| author | Alvaro Herrera | 2008-03-20 20:05:56 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2008-03-20 20:05:56 +0000 |
| commit | 8759b79d0fe8b9937b7cbebfed78480b3e6a94b2 (patch) | |
| tree | e86cf3029bf53bf9d037c29d44a142230d771bea /src/backend/commands/portalcmds.c | |
| parent | 4e228447aa42c3d74ad513a11d1d00c1997fd116 (diff) | |
Add a couple of missing FreeQueryDesc calls. Noticed while testing a
framework to keep track of snapshots in use.
Diffstat (limited to 'src/backend/commands/portalcmds.c')
| -rw-r--r-- | src/backend/commands/portalcmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/portalcmds.c b/src/backend/commands/portalcmds.c index 6efd09c44b1..c876f76d920 100644 --- a/src/backend/commands/portalcmds.c +++ b/src/backend/commands/portalcmds.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.69 2008/01/01 19:45:49 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.70 2008/03/20 20:05:56 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -262,6 +262,7 @@ PortalCleanup(Portal portal) CurrentResourceOwner = portal->resowner; /* we do not need AfterTriggerEndQuery() here */ ExecutorEnd(queryDesc); + FreeQueryDesc(queryDesc); } PG_CATCH(); { @@ -362,6 +363,7 @@ PersistHoldablePortal(Portal portal) portal->queryDesc = NULL; /* prevent double shutdown */ /* we do not need AfterTriggerEndQuery() here */ ExecutorEnd(queryDesc); + FreeQueryDesc(queryDesc); /* * Set the position in the result set: ideally, this could be |
