diff options
author | Noah Misch <noah@leadboat.com> | 2015-02-25 23:48:28 -0500 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-02-25 23:48:58 -0500 |
commit | d7083cc546bba50fe1adea5a05772f857cbff96b (patch) | |
tree | 9e16ab074c1497db05ff34ae4183c1438dd92791 /src/backend/access/transam/xact.c | |
parent | be8801e9c5f86122dacc8b037f0fab960dc0b196 (diff) | |
download | postgresql-d7083cc546bba50fe1adea5a05772f857cbff96b.tar.gz postgresql-d7083cc546bba50fe1adea5a05772f857cbff96b.zip |
Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variables.
"RETURN SQLERRM" prompted plpgsql_exec_function() to read from freed
memory. Back-patch to 9.0 (all supported versions). Little code ran
between the premature free and the read, so non-assert builds are
unlikely to witness user-visible consequences.
Diffstat (limited to 'src/backend/access/transam/xact.c')
0 files changed, 0 insertions, 0 deletions