diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-09-22 21:57:53 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-09-22 21:57:53 +0000 |
commit | 8399ff337e75d199fa97b10677b08abbf073a857 (patch) | |
tree | 02a7afdddbd83de4f65b84e78794e734ebb82511 /threads.c | |
parent | 4edd3ed8c53ca8a00cca90d669e5847a602bec3b (diff) | |
download | android_external_libxml2-8399ff337e75d199fa97b10677b08abbf073a857.tar.gz android_external_libxml2-8399ff337e75d199fa97b10677b08abbf073a857.tar.bz2 android_external_libxml2-8399ff337e75d199fa97b10677b08abbf073a857.zip |
couple of memory fixes from Mark Vakoc reported by Purify on Windows.
* threads.c uri.c: couple of memory fixes from Mark Vakoc reported
by Purify on Windows.
Daniel
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -369,6 +369,8 @@ xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED) static void xmlFreeGlobalState(void *state) { + /* free any memory allocated in the thread's xmlLastError */ + xmlResetLastError(); free(state); } |