[xml] mem leak in xmlsoft.org tutorial



Hi! 
I think there are two memory leak in function getnodeset at
http://www.xmlsoft.org/tutorial/apd.html 

If if(xmlXPathNodeSetIsEmpty(result->nodesetval)) is TRUE then we should do:
  xmlXPathFreeContext (context);
  xmlXPathFreeObject (result);

sorry for writing in this mailing list but i've not found the email of the
tutorial's author :/

bye

p.s. = keep up your good work!!!




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