1
From: Alexander Pastukhov <pastuchov@yandex.ru>
2
Date: Tue, 23 Apr 2013 05:02:11 +0000
3
Subject: Fix an error in xmlCleanupParser
5
https://bugzilla.gnome.org/show_bug.cgi?id=698582
7
xmlCleanupParser calls xmlCleanupGlobals() and then
8
xmlResetLastError() but the later reallocate the global
9
data freed by previous call. Just swap the two calls.
12
1 file changed, 1 insertion(+), 1 deletion(-)
14
diff --git a/parser.c b/parser.c
15
index ee429f3..b9df6d8 100644
18
@@ -14763,8 +14763,8 @@ xmlCleanupParser(void) {
19
xmlSchemaCleanupTypes();
20
xmlRelaxNGCleanupTypes();
22
- xmlCleanupGlobals();
24
+ xmlCleanupGlobals();
25
xmlCleanupThreads(); /* must be last if called not from the main thread */
27
xmlParserInitialized = 0;