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:54 -0500 |
commit | 4651e37cb1c9cc34643921bdc8b783d1c81b488f (patch) | |
tree | 7eea537b1b4a7cf4b93c292568c2f5f13f28ef52 /src/backend/commands/sequence.c | |
parent | f864fe07403e6d6b38a06490c01a62a41872899a (diff) | |
download | postgresql-4651e37cb1c9cc34643921bdc8b783d1c81b488f.tar.gz postgresql-4651e37cb1c9cc34643921bdc8b783d1c81b488f.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/commands/sequence.c')
0 files changed, 0 insertions, 0 deletions