pgsql: Fix plpgsql to avoid reference to already-freed memory when - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix plpgsql to avoid reference to already-freed memory when
Date
Msg-id 20070419163332.5E6B79FB917@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix plpgsql to avoid reference to already-freed memory when returning a
pass-by-reference data type and the RETURN statement is within an EXCEPTION
block.  Bug introduced by my fix of 2007-01-28 to use per-subtransaction
ExprContexts/EStates; since that wasn't back-patched into older branches,
only 8.2 and HEAD are affected.  Per report from Gary Winslow.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.180.2.4 -> r1.180.2.5)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.180.2.4&r2=1.180.2.5)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix plpgsql to avoid reference to already-freed memory when
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Repair PANIC condition in hash indexes when a previous index