[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] heap neutrality while outputting c14n
- From: Daniel Veillard <veillard redhat com>
- To: Prashant R <ramapra gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] heap neutrality while outputting c14n
- Date: Thu, 11 Dec 2008 15:54:58 +0100
On Wed, Dec 10, 2008 at 11:23:48PM -0800, Prashant R wrote:
> Hello ,
> I am trying to output c14n bytes of a specific node in my tree.
> For this purpose I have written a general purpose function that will
> generate C14n bytes by providing a xmlChar** ptr and the xmlNodePtr for
> which I need the c14n outpput .
>
> Issue : I would expect that after calling this function and after calling
> xmlFree() , heap consumption should return to the same value .
>
> I find that for a a node that contains around 538 bytes I am losing around
> 2K bytes worth of heap memory
No idea, make a standalone version and use valgrind for leak checking
or compile with memory debug and get a dump at the end if you want to be
even more sure about your code.
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]