[xml] libxml2.rmutex-cond-leak.awn.1.patch



2006-06-26  Andrew W. Nosenko  <andrew w nosenko gmail com>

        * threads.c:
        (xmlFreeRMutex) [HAVE_PTHREAD_H]:
        Destroying of condition, which allocated in the xmlNewRMutex(),
        is added.

Seems like absent pthread_cond_destroy() produces memory leak under FreeBSD
(4 bytes per each xmlNewRMutex() call).  Whether memory leaks on the other
systems depends on they's pthread implementation.

--
Andrew W. Nosenko <andrew w nosenko gmail com>

Attachment: libxml2.rmutex-cond-leak.awn.1.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]