diff options
author | William M. Brack <wbrack@src.gnome.org> | 2006-12-22 17:12:57 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2006-12-22 17:12:57 +0000 |
commit | c2d91bc1cb0be65587df6302ee3989fc5ee97700 (patch) | |
tree | eff7b7049564b0fce49d5cfe9f61fc4ad0fc8eaf /python | |
parent | 78811a9c078cb2096f0fa1af5cd0f046e6544153 (diff) | |
download | libxslt-c2d91bc1cb0be65587df6302ee3989fc5ee97700.tar.gz libxslt-c2d91bc1cb0be65587df6302ee3989fc5ee97700.tar.bz2 libxslt-c2d91bc1cb0be65587df6302ee3989fc5ee97700.zip |
applied patch supplied by Kjartan Maraas (bug #388567).
* python/libxslt.c: applied patch supplied by Kjartan Maraas
(bug #388567).
Diffstat (limited to 'python')
-rw-r--r-- | python/libxslt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |