Re: [xml] memory leak in xmlXPathErr?

On Tue, May 30, 2006 at 04:58:35PM -0700, Aleksey Sanin wrote:
Hello, All!

I believe I run into a memory leak in xmlXPathErr() with the
following (incorrect) XPath expression:


In this case, LibXML2 first reports an error from xmlXPathCompNodeTest()
function (some function parameters are removed in the stack trace):

The proposed fix is trivial: just add one line to xmlXPathErr() function
right before the update "ctxt->context->lastError" variable:


Any objection if I make this change?

  No objection, that sounds right !


Daniel Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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