Re: [xml] memory tag error occurs

On Fri, Apr 30, 2010 at 09:19:12AM -0400, ecforu wrote:
I am still confused because I think that I am using xmlChar * that are
causing the problem.  See my code below.  Using gdb the error shows up on
the calls to

Those 2 strings I am freeing with xmlMemFree come from a xmlStrncatNew and a
xmlStrndup.  I was under the impression that these created new strings with
xmlMalloc which I should be able to xmlMemFree... No?

Why are you using xmlMemFree instead of xmlFree ?

Can you provide a standlone reproducer of the problem ? An excerpt
out of context can hide so many things...


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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