From 807a26265755c675e6f1a4bed7a7ce25019c3342 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 13 Jun 2001 01:02:59 +0000 Subject: [PATCH] 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. --- src/pl/plpgsql/src/pl_exec.c | 8 +------- 1 file changed, 1 insertion(+), 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); /* -- 2.39.5