summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index f47ac5a26..2a10792f8 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1497,7 +1497,6 @@ void parse_xml_buffer(const char *url, const char *buffer, int size, GError **er
traverse(xmlDocGetRootElement(doc));
dive_end();
xmlFreeDoc(doc);
- xmlCleanupParser();
}
void parse_xml_init(void)
@@ -1505,6 +1504,11 @@ void parse_xml_init(void)
LIBXML_TEST_VERSION
}
+void parse_xml_exit(void)
+{
+ xmlCleanupParser();
+}
+
#ifdef XSLT
/* Maybe we'll want a environment variable that can override this.. */