From a8b5413a5ffe35dc06708c640d2a1a6cc004fe0e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 29 Jun 2006 11:50:18 +0000 Subject: [PATCH] patch from Andrew W. Nosenko, xmlFreeRMutex forgot to destroy the * threads.c: patch from Andrew W. Nosenko, xmlFreeRMutex forgot to destroy the condition associated to the mutex. Daniel --- ChangeLog | 5 +++++ threads.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d00d3131..60c61ae1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 29 13:51:12 CEST 2006 Daniel Veillard + + * threads.c: patch from Andrew W. Nosenko, xmlFreeRMutex forgot to + destroy the condition associated to the mutex. + Thu Jun 29 12:48:00 CEST 2006 Kasimier Buchcik * xpath.c: Fixed a double-free in xmlXPathCompOpEvalToBoolean(), diff --git a/threads.c b/threads.c index 90a461ae..7124bca3 100644 --- a/threads.c +++ b/threads.c @@ -319,8 +319,10 @@ xmlFreeRMutex(xmlRMutexPtr tok ATTRIBUTE_UNUSED) if (tok == NULL) return; #ifdef HAVE_PTHREAD_H - if (libxml_is_threaded != 0) + if (libxml_is_threaded != 0) { pthread_mutex_destroy(&tok->lock); + pthread_cond_destroy(&tok->cv); + } #elif defined HAVE_WIN32_THREADS DeleteCriticalSection(&tok->cs); #elif defined HAVE_BEOS_THREADS