aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistsplit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-05-31 14:47:44 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-05-31 14:47:44 -0400
commit16c80e7d0cdad933103968aec7cd024bca5274c0 (patch)
treef3ba33f4a4f9d6061d63fc9205672ae8a3cc60b7 /src/backend/access/gist/gistsplit.c
parentc03b7f52607f20e8b49e662927ba5810d49f3427 (diff)
downloadpostgresql-16c80e7d0cdad933103968aec7cd024bca5274c0.tar.gz
postgresql-16c80e7d0cdad933103968aec7cd024bca5274c0.zip
Ensure ParseTzFile() closes the input file after failing.
We hadn't noticed this because (a) few people feed invalid timezone abbreviation files to the server, and (b) in typical scenarios guc.c would throw ereport(ERROR) and then transaction abort handling would silently clean up the leaked file reference. However, it was possible to observe file leakage warnings if one breaks an already-active abbreviation file, because guc.c does not throw ERROR when loading supposedly-validated settings during session start or SIGHUP processing. Report and fix by Kyotaro Horiguchi (cosmetic adjustments by me) Discussion: https://postgr.es/m/20220530.173740.748502979257582392.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions