Re: [xml] Memory leak problem

2019-12-21 Thread Daniel Veillard via xml
Hi Eric, sorry, I'm very late to the thread, but in case you still have issues: 1/ yes xmlFreeDoc is the right way to free the whole memory of the document, you may be missing freeing other bits left and right if you don't use it 2/ you can debug memory allocation by running valgrind

Re: [xml] Memory leak problem

2019-11-27 Thread Nick Wellnhofer
Hi Eric, I'd use AddressSanitizer to debug this kind of problem. It's built into recent clang and gcc versions but probably doesn't support AIX. If you can produce a stand-alone test program that exhibits the memory leak, you could debug it under Linux, though. Another option is libxml2's bu

Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
Thank you! I will Google and see if they have an AIX version. E -Original Message- From: Lara Blatchford [mailto:lara.blatchf...@nteligen.com] Sent: Tuesday, November 26, 2019 2:34 PM To: Eric Eberhard ; 'BR Chrisman' Cc: xml@gnome.org Subject: RE: [xml] Memory leak problem

Re: [xml] Memory leak problem

2019-11-26 Thread Liam R E Quin
On Tue, 2019-11-26 at 22:48 -0700, Eric Eberhard wrote: > Thank you much. I am on AIX (IBM). OK. Check the man page for malloc man 3 malloc and see if there are environment variables to check each allocation. Years ago (1980s) i ended up writing wrappers around malloc and free that took an

Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
t back to the group when done and solved. Have a GREAT Thanksgiving, E -Original Message- From: Liam R E Quin [mailto:l...@holoweb.net] Sent: Tuesday, November 26, 2019 7:17 PM To: Eric Eberhard ; 'BR Chrisman' Cc: xml@gnome.org Subject: Re: [xml] Memory leak problem On Tue, 20

Re: [xml] Memory leak problem

2019-11-26 Thread Liam R E Quin
On Tue, 2019-11-26 at 11:47 -0700, Eric Eberhard wrote: > Is there a C call to see how much memory one is consuming? I could > likely put that in to try and find it. Depends on your operating system - there are also environment variables you can se that affect the bahaviour of malloc() in various

Re: [xml] Memory leak problem

2019-11-26 Thread Lara Blatchford
Have you considered running your application under a tool like valgrind to see where it reports leaks? Lara -Original Message- From: xml On Behalf Of Eric Eberhard Sent: Tuesday, November 26, 2019 1:47 PM To: 'BR Chrisman' Cc: xml@gnome.org Subject: Re: [xml] Memory le

Re: [xml] Memory leak problem

2019-11-26 Thread Eric Eberhard
o:xml-boun...@gnome.org] On Behalf Of BR Chrisman via xml Sent: Sunday, November 24, 2019 12:57 PM Cc: xml@gnome.org Subject: Re: [xml] Memory leak problem On Sat, Nov 23, 2019 at 10:04 AM Eric Eberhard wrote: > > I have used libxml2 since it was libxml so I can’t believe I am having this > pr

Re: [xml] Memory leak problem

2019-11-24 Thread BR Chrisman via xml
On Sat, Nov 23, 2019 at 10:04 AM Eric Eberhard wrote: > > I have used libxml2 since it was libxml so I can’t believe I am having this > problem. I’m looking for someone smarter than me to help out. > > > > I use only the DOM (memory) parser, and an old version at that: libxml2-2.7.3 > > > > I h

[xml] Memory leak problem

2019-11-23 Thread Eric Eberhard
I have used libxml2 since it was libxml so I can't believe I am having this problem. I'm looking for someone smarter than me to help out. I use only the DOM (memory) parser, and an old version at that: libxml2-2.7.3 I have a program that makes many XML files. They, alone, are not a proble