summaryrefslogtreecommitdiff
path: root/threads.c
diff options
context:
space:
mode:
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;