aboutsummaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-09-22 21:57:53 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-09-22 21:57:53 +0000
commit8399ff337e75d199fa97b10677b08abbf073a857 (patch)
tree02a7afdddbd83de4f65b84e78794e734ebb82511 /threads.c
parent4edd3ed8c53ca8a00cca90d669e5847a602bec3b (diff)
downloadandroid_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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/threads.c b/threads.c
index ac6c8d62..b4a4cdc1 100644
--- a/threads.c
+++ b/threads.c
@@ -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);
}