[libxml2] Fix an error in xmlCleanupParser
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix an error in xmlCleanupParser
- Date: Tue, 23 Apr 2013 05:04:05 +0000 (UTC)
commit 704d8c5e9ae911715d575abca03900591d56c040
Author: Alexander Pastukhov <pastuchov yandex ru>
Date: Tue Apr 23 13:02:11 2013 +0800
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.
parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/parser.c b/parser.c
index ee429f3..b9df6d8 100644
--- a/parser.c
+++ b/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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]