List Info

Thread: libxml2.rmutex-cond-leak.awn.1.patch




libxml2.rmutex-cond-leak.awn.1.patch
user name
2006-06-26 11:47:12
2006-06-26  Andrew W. Nosenko  <andrew.w.nosenkogmail.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.nosenkogmail.com>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
libxml2.rmutex-cond-leak.awn.1.patch
user name
2006-06-29 11:30:59
[Try #2, seems, like 1st message went to /dev/null instead
of mailing list :-( ]

2006-06-26  Andrew W. Nosenko  <andrew.w.nosenkogmail.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.nosenkogmail.com>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
libxml2.rmutex-cond-leak.awn.1.patch
user name
2006-06-29 11:50:54
On Thu, Jun 29, 2006 at 02:30:59PM +0300, Andrew W. Nosenko
wrote:
> [Try #2, seems, like 1st message went to /dev/null
instead of mailing list 
> :-( ]

  Oops, no !
Actually I had applied it to my tree as this was making
perfect sense,
but  apparently I got distracted and didn't commited it and
forgot to reply,
sorry about this, it was on my tree actually 

> 2006-06-26  Andrew W. Nosenko  <andrew.w.nosenkogmail.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.

  That's commited to CVS now, thanks !

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )