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



[Try #2, seems, like 1st message went to /dev/null instead of mailing list :-( ]

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.

Absent pthread_cond_destroy() produces memory leak under FreeBSD
(~4 bytes per each xmlNewRMutex() call).  Whether memory leaks on the other
systems depends on 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]