Skip to content

Commit 704d8c5

Browse files
IEHBRNEWveillard
authored andcommitted
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.
1 parent f4e5a69 commit 704d8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14763,8 +14763,8 @@ xmlCleanupParser(void) {
1476314763
xmlSchemaCleanupTypes();
1476414764
xmlRelaxNGCleanupTypes();
1476514765
#endif
14766-
xmlCleanupGlobals();
1476714766
xmlResetLastError();
14767+
xmlCleanupGlobals();
1476814768
xmlCleanupThreads(); /* must be last if called not from the main thread */
1476914769
xmlCleanupMemory();
1477014770
xmlParserInitialized = 0;

0 commit comments

Comments
 (0)