Thread: pgsql: It turns out the LIBXML_TEST_VERSION macro calls xmlInitParser().

pgsql: It turns out the LIBXML_TEST_VERSION macro calls xmlInitParser().

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        xml.c (r1.66 -> r1.67)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.66&r2=1.67)