summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.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:19 -0400
commit95cf1a1817c992769e38cda7437751af54642ef8 (patch)
treeece0c6d35353d3ab7ceb964467b9d9592bbfdc3f /src/backend/executor/nodeProjectSet.c
parenta553a2289dbb7f157234ec08122bb3f54a417a24 (diff)
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/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions