aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-07-08 12:50:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-07-08 12:50:33 -0400
commite03c95287764158941d317972a332565729b6af2 (patch)
treecea348abc242ad8d79b4537c71f67f171bb2f557 /src/backend/access/transam/commit_ts.c
parentaa39b4e35ac65d4c1672ba2a29707008a754ddf5 (diff)
downloadpostgresql-e03c95287764158941d317972a332565729b6af2.tar.gz
postgresql-e03c95287764158941d317972a332565729b6af2.zip
Fix low-probability memory leak in XMLSERIALIZE(... INDENT).
xmltotext_with_options() did not consider the possibility that pg_xml_init() could fail --- most likely due to OOM. If that happened, the already-parsed xmlDoc structure would be leaked. Oversight in commit 483bdb2af. Bug: #18981 Author: Dmitry Kovalenko <d.kovalenko@postgrespro.ru> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/18981-9bc3c80f107ae925@postgresql.org Backpatch-through: 16
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions