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:24 +0000 (16:33 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Apr 2007 16:33:24 +0000 (16:33 +0000)
commit77a41e71a3550a438e579da170db86c61bd61e4b
treeac5f44056b0b128488076c8792e7e61b9739623e
parentdfa58878cb474a31c4cc916a4fda0ea6d47b194f
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