summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1997-03-25 04:10:21 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1997-03-25 04:10:21 +0000
commit1a63f48b28171b1c9352bd9138471ca6793124a3 (patch)
treea0ce35cbbd740e87a53bd30065e1fe991f17e467 /src
parentef56e51cd32b0590d5e048e8a6ff777b8a64916b (diff)
Free memory allocated by command in the BlankPortal' HeapMemory context
(#ifdef-ed).
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xact.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index d74576e7238..5cf95fbaf6b 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.8 1997/03/14 23:18:16 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.9 1997/03/25 04:10:21 vadim Exp $
*
* NOTES
* Transaction aborts can now occur two ways:
@@ -1017,10 +1017,18 @@ CommitTransactionCommand()
* someplace within a transaction block. We increment the
* command counter and return. Someday we may free resources
* local to the command.
+ *
+ * That someday is today, at least for memory allocated by
+ * command in the BlankPortal' HeapMemory context.
+ * - vadim 03/25/97
* ----------------
*/
case TBLOCK_INPROGRESS:
CommandCounterIncrement();
+#ifdef TBL_FREE_CMD_MEMORY
+ EndPortalAllocMode ();
+ StartPortalAllocMode (DefaultAllocMode, 0);
+#endif
break;
/* ----------------