Commit 01c3bd53 authored by Daniel Veillard's avatar Daniel Veillard

fixed nasty bug #156087 Daniel

* threads.c: fixed nasty bug #156087
Daniel
parent ad9fb7c0
Fri Oct 22 15:20:23 CEST 2004 Daniel Veillard <daniel@veillard.com>
* threads.c: fixed nasty bug #156087
Fri Oct 22 21:04:20 CEST 2004 Daniel Veillard <daniel@veillard.com>
* python/libxml.c: fixed a problem occuring only in x86_64 when
......
......@@ -359,6 +359,9 @@ xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
************************************************************************/
#ifdef LIBXML_THREAD_ENABLED
#ifdef xmlLastError
#undef xmlLastError
#endif
/**
* xmlFreeGlobalState:
* @state: a thread global state
......@@ -369,8 +372,10 @@ xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
static void
xmlFreeGlobalState(void *state)
{
/* free any memory allocated in the thread's xmlLastError */
xmlResetLastError();
xmlGlobalState *gs = (xmlGlobalState *) state;
/* free any memory allocated in the thread's xmlLastError */
xmlResetError(&(gs->xmlLastError));
free(state);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment