aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/sequence.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-02-25 23:48:28 -0500
committerNoah Misch <noah@leadboat.com>2015-02-25 23:48:54 -0500
commit4651e37cb1c9cc34643921bdc8b783d1c81b488f (patch)
tree7eea537b1b4a7cf4b93c292568c2f5f13f28ef52 /src/backend/commands/sequence.c
parentf864fe07403e6d6b38a06490c01a62a41872899a (diff)
downloadpostgresql-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