diff --git a/ChangeLog b/ChangeLog index b3255947..6ee03fd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 22 09:12:08 PST 2006 William Brack + + * python/libxslt.c: applied patch supplied by Kjartan Maraas + (bug #388567). + Mon Dec 11 14:38:22 PST 2006 William Brack * libexslt/functions.c: further enhancement to the original diff --git a/python/libxslt.c b/python/libxslt.c index 5337b7a7..182dbcb8 100644 --- a/python/libxslt.c +++ b/python/libxslt.c @@ -516,7 +516,7 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options, xsltLoadType type ATTRIBUTE_UNUSED) { xmlParserCtxtPtr pctxt; - xmlDocPtr doc; + xmlDocPtr doc=NULL; pctxt = xmlNewParserCtxt(); if (pctxt == NULL) @@ -570,9 +570,9 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options, if (! pctxt->wellFormed) { if (doc != NULL) { xmlFreeDoc(doc); + doc = NULL; } if (pctxt->myDoc != NULL) { - doc = NULL; xmlFreeDoc(pctxt->myDoc); pctxt->myDoc = NULL; }