summaryrefslogtreecommitdiff
path: root/contrib/xml2
diff options
context:
space:
mode:
authorTom Lane2025-07-08 16:50:19 +0000
committerTom Lane2025-07-08 16:50:19 +0000
commitabb517d619c35cedb13e0c593dcd4cc4219f3aff (patch)
tree1b677f90014d6debb950c1cf016be5e636f3c673 /contrib/xml2
parent3bbc1c4a73384bee6af6ec0c28875d2576c0d2ca (diff)
Fix low-probability memory leak in XMLSERIALIZE(... INDENT).REL_16_STABLE
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 <[email protected]> Reviewed-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 16
Diffstat (limited to 'contrib/xml2')
0 files changed, 0 insertions, 0 deletions