1.1 --- a/libxml2dom/macrolib/macrolib.py Sun May 15 15:46:44 2005 +0000
1.2 +++ b/libxml2dom/macrolib/macrolib.py Sun May 15 16:08:45 2005 +0000
1.3 @@ -317,8 +317,9 @@
1.4 # NOTE: Discover namespaces from the node.
1.5 for prefix, ns in (namespaces or {}).items():
1.6 libxml2mod.xmlXPathRegisterNs(context, prefix, ns)
1.7 - # NOTE: May need to tidy up the context.
1.8 - return libxml2mod.xmlXPathEval(expr, context)
1.9 + result = libxml2mod.xmlXPathEval(expr, context)
1.10 + libxml2mod.xmlXPathFreeContext(context)
1.11 + return result
1.12
1.13 # Utility functions.
1.14