pgsql: Fix low-probability memory leak in XMLSERIALIZE(... INDENT).

2025-07-08 Thread Tom Lane
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 Autho

pgsql: Fix low-probability memory leak in XMLSERIALIZE(... INDENT).

2025-07-08 Thread Tom Lane
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 Autho

pgsql: Fix low-probability memory leak in XMLSERIALIZE(... INDENT).

2025-07-08 Thread Tom Lane
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 Autho

pgsql: Fix low-probability memory leak in XMLSERIALIZE(... INDENT).

2025-07-08 Thread Tom Lane
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 Autho