[xml] [PATCH] Python xpathEval method can leak



The python xpathEval convenience method on xmlCore leaks an
xmlXPathContext if the expression is invalid or otherwise fails. Fix
attached, with test that can probably be adapted to go in the tests
dir.

I'd like to do a real fix for the xpathEval2 thing just below, but
it'd mean bindings changes, so then might as well rewrite cleaner...
spirals into a big job.

Martin

Attachment: simple_leak.patch
Description: Binary data

Attachment: xpathleak.py
Description: Text Data



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