Re: [xml] Question about xmlCleanupParser()



As I don´t know who is going to use my library and how 
(wheter the process will be using libxml by his own or not), 
if one process loads, uses and unloads my library several 
times, the memory leak would be cumulative?

 no, it should not.

Ok, I won't call the function then.

Thanks for your help.

Unai Astorquiza San Nicolás 
Dpto. I+D
MailTo: uastorquiza pandasoftware es

Panda Software
Protección contra virus, spyware, hackers, spam y otras amenazas de Internet
Buenos Aires, 12
48001 BILBAO - ESPAÑA
Teléfono: 902 24 365 4
Fax:  94 424 46 97

Panda Software es una empresa líder en el desarrollo y suministro de soluciones integradas de seguridad para 
combatir virus, hackers, troyanos, spyware, phishing, spam y otras amenazas de Internet. Con sus 
revolucionarias Tecnologías TruPrevent(tm), las innovadoras soluciones de Panda Software ofrecen una mayor 
rentabilidad de la inversión, manteniendo a los clientes protegidos incluso contra las nuevas amenazas que 
todavía no han sido identificadas. Más información en www.pandasoftware.es

¡Protéjase ahora contra virus, spyware, hackers, spam y otras amenazas de Internet!

Pruebe gratis nuestros productos en www.pandasoftware.es/descargas


-----Mensaje original-----
De: Daniel Veillard [mailto:veillard redhat com]
Enviado el: martes, 19 de septiembre de 2006 17:02
Para: Unai Astorquiza
CC: xml gnome org
Asunto: Re: [xml] Question about xmlCleanupParser()


On Tue, Sep 19, 2006 at 04:58:43PM +0200, Unai Astorquiza wrote:
The question is: if someone uses my library and also uses 
libxml by his own in a process, my call to xmlCleanupParser 
would affect the other instance of libxml?

yes, so don't call it, at worse you will just lost a bit of 
data global to the
library.

As I don´t know who is going to use my library and how 
(wheter the process will be using libxml by his own or not), 
if one process loads, uses and unloads my library several 
times, the memory leak would be cumulative?

 no, it should not.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




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