diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-13 01:02:59 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-13 01:02:59 +0000 |
commit | 807a26265755c675e6f1a4bed7a7ce25019c3342 (patch) | |
tree | 750848417319ca0e0c51b1c40b66427a16bdc5e9 | |
parent | deab4a4692045a0da9013aed2ddcefe32a5279c1 (diff) |
Back-patch fix for attempt to pfree a value that's not palloc'd
(it's a field of a tuple). I see Jan has already fixed this in
current sources, but 7.1.* is pretty badly broken here.
-rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index ec3c051ccf6..b0b299d217d 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.41.2.1 2001/05/08 01:02:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.41.2.2 2001/06/13 01:02:59 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -1922,9 +1922,6 @@ exec_stmt_dynexecute(PLpgSQL_execstate * estate, ObjectIdGetDatum(typeStruct->typelem), Int32GetDatum(-1))); - if (!typeStruct->typbyval) - pfree((void *) query); - ReleaseSysCache(typetup); /* @@ -2038,9 +2035,6 @@ exec_stmt_dynfors(PLpgSQL_execstate * estate, PLpgSQL_stmt_dynfors * stmt) ObjectIdGetDatum(typeStruct->typelem), Int32GetDatum(-1))); - if (!typeStruct->typbyval) - pfree((void *) query); - ReleaseSysCache(typetup); /* |