diff options
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); } |