aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-18 22:09:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-18 22:09:41 -0400
commitfc552f8680a79d602beae230615ffe8ed236cc43 (patch)
tree5f652642acbbeb64910d8c62bd99645fe638e225 /contrib/postgres_fdw/postgres_fdw.h
parent92bc14a1027d9da079264c71329b87e137878845 (diff)
downloadpostgresql-fc552f8680a79d602beae230615ffe8ed236cc43.tar.gz
postgresql-fc552f8680a79d602beae230615ffe8ed236cc43.zip
Don't leak malloc'd strings when a GUC setting is rejected.
Because guc.c prefers to keep all its string values in malloc'd not palloc'd storage, it has to be more careful than usual to avoid leaks. Error exits out of string GUC hook checks failed to clear the proposed value string, and error exits out of ProcessGUCArray() failed to clear the malloc'd results of ParseLongOption(). Found via valgrind testing. This problem is ancient, so back-patch to all supported branches. Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions