summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
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
commit7e25217701cc54d16a2f07df135da3ba43066449 (patch)
treee05b8be5bf3e520d08082847bd1f956343d8d1d6 /src/tutorial/funcs.c
parent09e961929614d211405721f070b3db9f1b3f25f4 (diff)
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 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions