It turns out the LIBXML_TEST_VERSION macro calls xmlInitParser().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jan 2008 21:14:08 +0000 (21:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jan 2008 21:14:08 +0000 (21:14 +0000)
commit717d80b5e11d0caee1f093760c8e246ba28b57af
tree13f485e02486905d4d6aa1b79340b37cc4314196
parent9c98a320b26548234e2bf2232bf257d7f09e9f06
It turns out the LIBXML_TEST_VERSION macro calls xmlInitParser().
Therefore we must xmlCleanupParser(), or we risk leaving behind
dangling pointers to whatever memory context is current when xml_init()
is called.  This seems to fix bug #3860, though we might still want
the more invasive solution being worked on by Alvaro.
src/backend/utils/adt/xml.c