mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
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.
This commit is contained in:
parent
f4e5a6994e
commit
704d8c5e9a
2
parser.c
2
parser.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user