Re: [PATCH] Add pretty-printed XML output option
Jim Jones <jim.jones@uni-muenster.de>
From: Jim Jones <jim.jones@uni-muenster.de>
To: Peter Smith <smithpb2250@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-02-08T23:42:20Z
Lists: pgsql-hackers
On 09.02.23 00:09, Peter Smith wrote: > I noticed the xmlFreeDoc(doc) within the PG_CATCH is guarded but the > other xmlFreeDoc(doc) is not. As the doc is assigned outside the > PG_TRY shouldn't those both be the same? Hi Peter, My logic there was the following: if program reached that part of the code it means that the xml_parse() and xmlDocDumpFormatMemory() worked, which consequently means that the variables doc and xmlbuf are != NULL, therefore not needing to be checked. Am I missing something? Thanks a lot for the review! Best, Jim
Commits
-
Fix memory leak in XMLSERIALIZE(... INDENT).
- f24605e2dc16 18.0 landed
- ee58de10084b 16.10 landed
- 20bae0690322 17.6 landed
-
doc: Move documentation of md5_password_warnings to a better place
- f3622b64762b 18.0 cited
-
Support [NO] INDENT option in XMLSERIALIZE().
- 483bdb2afec9 16.0 landed
-
Add an expected-file to match behavior of latest libxml2.
- 085423e3e326 9.6.0 cited