[xml] Possible memory leak



Hi,

I'm using xmlXPathEvalExpression and I suspect there is a memory leak (according to Bounds Checker).

Here is a sequence I use:

 

xmlChar pXPathExpr[] = "Blah";

xmlXPathObjectPtr pXPathObj = xmlXPathEvalExpression(pXPathExpr, m_pXPathCtxt);

// Some error checking.

xmlNodePtr pEditBinData =  *pXPathObj->nodesetval->nodeTab;

xmlXPathFreeObject(pXPathObj);

 

Thanks, Ohad.



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