diff options
author | Alexander Pastukhov <pastuchov@yandex.ru> | 2013-04-23 13:02:11 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-04-23 13:02:11 +0800 |
commit | 704d8c5e9ae911715d575abca03900591d56c040 (patch) | |
tree | 7aca7ce0317092dcb96be1a2dd3ba0a3cd8e7a27 /parser.c | |
parent | f4e5a6994ed230dfa3fb5b5c3fd94c4993ef1ba7 (diff) | |
download | libxml2-704d8c5e9ae911715d575abca03900591d56c040.tar.gz |
Fix an error in xmlCleanupParser
https://bugzilla.gnome.org/show_bug.cgi?id=698582
xmlCleanupParser calls xmlCleanupGlobals() and then
xmlResetLastError() but the later reallocate the global
data freed by previous call. Just swap the two calls.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14763,8 +14763,8 @@ xmlCleanupParser(void) { xmlSchemaCleanupTypes(); xmlRelaxNGCleanupTypes(); #endif - xmlCleanupGlobals(); xmlResetLastError(); + xmlCleanupGlobals(); xmlCleanupThreads(); /* must be last if called not from the main thread */ xmlCleanupMemory(); xmlParserInitialized = 0; |