aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-28 23:39:20 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-28 23:40:13 -0500
commit80c925c7b4efcd80a8c648ca94ba1fabbd2863ae (patch)
tree8514a2cab54157fd6385cf9c55a3228d028fb906 /src/tutorial/funcs.c
parentf6a605702aa15f7a49da1ec0ab60a8abd956c139 (diff)
downloadpostgresql-80c925c7b4efcd80a8c648ca94ba1fabbd2863ae.tar.gz
postgresql-80c925c7b4efcd80a8c648ca94ba1fabbd2863ae.zip
Avoid multiple free_struct_lconv() calls on same data.
A failure partway through PGLC_localeconv() led to a situation where the next call would call free_struct_lconv() a second time, leading to free() on already-freed strings, typically leading to a core dump. Add a flag to remember whether we need to do that. Per report from Thom Brown. His example case only provokes the failure as far back as 9.4, but nonetheless this code is obviously broken, so back-patch to all supported branches.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions