GNOME Bugzilla – Bug 334477
Resource leak in xmlFreeRMutex
Last modified: 2006-10-13 10:29:39 UTC
Please describe the problem: xmlNewRMutex() initializes a pthread mutex, and a pthread condvar. The xmlFreeRMutex() only destroys the mutex, but not the condvar. Steps to reproduce: for (;;) { xmlFreeRMutex(xmlNewRMutex()); } Actual results: You'll eventually run out of memory or address space. Expected results: You'd not run out of memory or address space :-) Does this happen every time? Yes. Other information: Easy fix is to add pthread_cond_destroy() into xmlFreeRMutex.
This seems like a duplicate of 346268 and seems to be fixed in 2.6.26.
Right, fixed, Daniel