summaryrefslogtreecommitdiff
path: root/threads.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2009-01-18 14:57:04 +0000
committerDaniel Veillard <veillard@src.gnome.org>2009-01-18 14:57:04 +0000
commitbf2ebff0f11e4a3fbf2176c3deb00b8c7cecc5e4 (patch)
tree68b58dcd253f5b55489392cdb99dc2ff2f9fa128 /threads.c
parent1fb2e0dfc6319b55478858f7a7b7a21e0861982e (diff)
downloadlibxml2-bf2ebff0f11e4a3fbf2176c3deb00b8c7cecc5e4.tar.gz
patch from Daniel Zimmermann fixing a memory leak in an edge case, solves
* threads.c: patch from Daniel Zimmermann fixing a memory leak in an edge case, solves #562230 Daniel svn path=/trunk/; revision=3809
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/threads.c b/threads.c
index 23cb200a..fde0a62b 100644
--- a/threads.c
+++ b/threads.c
@@ -698,6 +698,7 @@ xmlGetGlobalState(void)
if (p == NULL) {
xmlGenericError(xmlGenericErrorContext,
"xmlGetGlobalState: out of memory\n");
+ xmlFreeGlobalState(tsd);
return(NULL);
}
p->memory = tsd;