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
      xmlMemFree(xmlElementName);
      xmlMemFree(xpathExpr);

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

-- 
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]