summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2006-12-22 17:12:57 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2006-12-22 17:12:57 +0000
commitc2d91bc1cb0be65587df6302ee3989fc5ee97700 (patch)
treeeff7b7049564b0fce49d5cfe9f61fc4ad0fc8eaf /python
parent78811a9c078cb2096f0fa1af5cd0f046e6544153 (diff)
downloadlibxslt-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.c4
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;
}