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

Re: [xml] libxml memory leak ?



Thanks Mike,

I was not expecting to have to do that as I was not parsing any document
but it fixes the memory leak.

Christophe

On Fri, 2006-07-28 at 23:14 +0200, Mike Hommey wrote:
> On Fri, Jul 28, 2006 at 02:25:41PM -0400, christophe barbe <cbarbe obj-sys com> wrote:
> > Hi All,
> > 
> > I was tracking a memory leak and ended up with a very simple libxml
> > program that leaks according to valgrind (I reproduced it with libxml
> > 2.6.26). 
> > Could someone, please, have a look at the attached c file and tell me if
> > I am doing something wrong? If not, I will create a bug report for it.
> > The valgrind report is also attached.
> 
> You want to add a call to xmlCleanupParser() at the end of your
> program.
> 
> Mike
-- 
Christophe Barbe - Software Engineer
Objective Systems, Inc.
REAL WORLD ASN.1 AND XML SOLUTIONS
Tel: +1 (484) 875-9841
Fax: +1 (484) 875-9830
Toll-free: (877) 307-6855 (USA only)
http://www.obj-sys.com




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