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)
commit1bbf8706ae6e7a307ac0739d9df51b47832c7d4b
treed9ca917dd398c788648e8753dda7d9d515a91824
parent52176633720246efda688efcbeedb141ca598d00
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