applied patch supplied by Kjartan Maraas (bug #388567).
authorWilliam M. Brack <wbrack@src.gnome.org>
Fri, 22 Dec 2006 17:12:57 +0000 (17:12 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Fri, 22 Dec 2006 17:12:57 +0000 (17:12 +0000)
* python/libxslt.c: applied patch supplied by Kjartan Maraas
  (bug #388567).

ChangeLog
python/libxslt.c

index b325594..6ee03fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 22 09:12:08 PST 2006 William Brack <wbrack@mmm.com.hk>
+
+       * python/libxslt.c: applied patch supplied by Kjartan Maraas
+         (bug #388567).
+
 Mon Dec 11 14:38:22 PST 2006 William Brack <wbrack@mmm.com.hk>
 
        * libexslt/functions.c: further enhancement to the original
index 5337b7a..182dbcb 100644 (file)
@@ -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;
         }