diff options
| author | Tom Lane | 1999-09-09 16:25:35 +0000 |
|---|---|---|
| committer | Tom Lane | 1999-09-09 16:25:35 +0000 |
| commit | 5bc0d31ae8c84fc43210c66338c5e2f492b52e6b (patch) | |
| tree | 76e4e78c25424e850b2ea7e6e48a891b1b86a432 /src/backend/utils | |
| parent | 8b8db01517bd688e35a70eb3a34fb0ce3c977085 (diff) | |
Repair incorrect cleanup of heap memory allocation during
transaction abort --- before it only worked if there was exactly one level
of allocation context stacked in the blank portal. Now it does the right
thing for any depth, including zero...
Diffstat (limited to 'src/backend/utils')
| -rw-r--r-- | src/backend/utils/mmgr/portalmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c index a49dca40b6a..d625d25d5bd 100644 --- a/src/backend/utils/mmgr/portalmem.c +++ b/src/backend/utils/mmgr/portalmem.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.28 1999/07/17 20:18:15 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.29 1999/09/09 16:25:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -83,7 +83,6 @@ static void CollectNamedPortals(Portal *portalP, int destroy); static Portal PortalHeapMemoryGetPortal(PortalHeapMemory context); static PortalVariableMemory PortalHeapMemoryGetVariableMemory(PortalHeapMemory context); -static void PortalResetHeapMemory(Portal portal); static Portal PortalVariableMemoryGetPortal(PortalVariableMemory context); /* ---------------- @@ -838,7 +837,7 @@ PortalDestroy(Portal *portalP) * BadArg if mode is invalid. * ---------------- */ -static void +void PortalResetHeapMemory(Portal portal) { PortalHeapMemory context; |
