8000 Back-patch fix for attempt to pfree a value that's not palloc'd · jaylevitt/postgres@807a262 · GitHub
[go: up one dir, main page]

Skip to content

Commit 807a262

Browse files
committed
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.
1 parent deab4a4 commit 807a262

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/pl/plpgsql/src/pl_exec.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* procedural language
44
*
55
* IDENTIFICATION
6-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.41.2.1 2001/05/08 01:02:03 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.41.2.2 2001/06/13 01:02:59 tgl Exp $
77
*
88
* This software is copyrighted by Jan Wieck - Hamburg.
99
*
@@ -1922,9 +1922,6 @@ exec_stmt_dynexecute(PLpgSQL_execstate * estate,
19221922
ObjectIdGetDatum(typeStruct->typelem),
19231923
Int32GetDatum(-1)));
19241924

1925-
if (!typeStruct->typbyval)
1926-
pfree((void *) query);
1927-
19281925
ReleaseSysCache(typetup);
19291926

19301927
/*
@@ -2038,9 +2035,6 @@ exec_stmt_dynfors(PLpgSQL_execstate * estate, PLpgSQL_stmt_dynfors * stmt)
20382035
ObjectIdGetDatum(typeStruct->typelem),
20392036
Int32GetDatum(-1)));
20402037

2041-
if (!typeStruct->typbyval)
2042-
pfree((void *) query);
2043-
20442038
ReleaseSysCache(typetup);
20452039

20462040
/*

0 commit comments

Comments
 (0)
0