aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.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:28 -0500
commitf5ef00aed4c39645716cabb2e4cf1ef3598fcde7 (patch)
tree508d8bfd472cb06772338395101758745a3a5993 /src/backend/utils/adt/json.c
parent62a4a1af5d1d84f0023bc3816c204191b0f4f49f (diff)
downloadpostgresql-f5ef00aed4c39645716cabb2e4cf1ef3598fcde7.tar.gz
postgresql-f5ef00aed4c39645716cabb2e4cf1ef3598fcde7.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/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions