mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-06-30 02:21:44 +03:00
applied patch supplied by Kjartan Maraas (bug #388567).
* python/libxslt.c: applied patch supplied by Kjartan Maraas (bug #388567).
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user