Re: [xml] leak in globals.c
- From: Daniel Veillard <veillard redhat com>
- To: Prashant R <ramapra gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] leak in globals.c
- Date: Thu, 9 Jul 2009 08:09:00 +0200
On Wed, Jul 08, 2009 at 06:10:48PM -0700, Prashant R wrote:
void xmlInitGlobals(void)
{
xmlThrDefMutex = xmlNewMutex();
}
This function is called multiple times and new allocation occurs each time
.
is this fixed or going to be a part of the next release ?
No because I don't see a bug there. This is called only once by
xmlInitParser, and potentially by xmlInitializeGlobalState() if
xmlInitParser() wasn't called. My guess is that you didn't followed
thread initialization recommendations, and it's your code which need
fixing, have you read the docs about threads ?
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]