]> granicus.if.org Git - postgresql/commit
Fix plpgsql to avoid reference to already-freed memory when returning a
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Apr 2007 16:33:32 +0000 (16:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Apr 2007 16:33:32 +0000 (16:33 +0000)
commit266a0ffe45ad741f30d75450db97e672171299bb
treed05f6adf6c26176e721ce58fef945d8d6bcfdf81
parent9de4b61388fbb805522a55913604314b9c588d89
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.
src/pl/plpgsql/src/pl_exec.c