HI ALL,

I encounter a problem on libxml free problem.
I simple use a code like below,

   xmlDocPtr doc;
   xmlNodePtr cur;

   .......

   doc = xmlReadMemory(pBuf, (int)strlen(pBuf), " recbuf.xml", NULL, 0);
   if (doc == NULL)
   {
       return ret;
   }

   .....
   cur = xmlDocGetRootElement(doc);
   .....
   //do some thing


   xmlFreedoc(doc);

   ...

But I use valgrind check above code , find this code always has memory
problem , the valgrind log is,








Best Regards,
Ke Tao
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to