aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeSubplan.c
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>1999-12-16 22:20:03 +0000
committerJan Wieck <JanWieck@Yahoo.com>1999-12-16 22:20:03 +0000
commit397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73 (patch)
tree17583111e0e7c2ca83b94040d48a1036f870b9a4 /src/backend/executor/nodeSubplan.c
parent5ca971a18a708341dd49f27c23fec40ea4342d13 (diff)
downloadpostgresql-397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73.tar.gz
postgresql-397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73.zip
Some changes to prepare for LONG attributes.
Jan
Diffstat (limited to 'src/backend/executor/nodeSubplan.c')
-rw-r--r--src/backend/executor/nodeSubplan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/executor/nodeSubplan.c b/src/backend/executor/nodeSubplan.c
index 65c42b61b3b..60b484d708b 100644
--- a/src/backend/executor/nodeSubplan.c
+++ b/src/backend/executor/nodeSubplan.c
@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeSubplan.c,v 1.17 1999/11/15 03:28:05 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeSubplan.c,v 1.18 1999/12/16 22:19:44 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -117,7 +117,7 @@ ExecSubPlan(SubPlan *node, List *pvar, ExprContext *econtext, bool *isNull)
*/
tup = heap_copytuple(tup);
if (node->curTuple)
- pfree(node->curTuple);
+ heap_freetuple(node->curTuple);
node->curTuple = tup;
result = heap_getattr(tup, col, tdesc, isNull);
/* keep scanning subplan to make sure there's only one tuple */
@@ -351,7 +351,7 @@ ExecSetParamPlan(SubPlan *node)
*/
tup = heap_copytuple(tup);
if (node->curTuple)
- pfree(node->curTuple);
+ heap_freetuple(node->curTuple);
node->curTuple = tup;
foreach(lst, node->setParam)
@@ -408,7 +408,7 @@ ExecEndSubPlan(SubPlan *node)
}
if (node->curTuple)
{
- pfree(node->curTuple);
+ heap_freetuple(node->curTuple);
node->curTuple = NULL;
}
}