mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-09 21:50:42 +00:00
fixed problem regarding freeing of dictionary when there are errors within
* xinclude.c: fixed problem regarding freeing of dictionary when there are errors within an XInclude file (bug 133106). Thanks to Oleg Paraschenko for the assistance.
This commit is contained in:
parent
fbf2c5eaf5
commit
b2d25dd760
@ -1,3 +1,9 @@
|
||||
Tue Feb 3 16:48:57 PST 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* xinclude.c: fixed problem regarding freeing of dictionary
|
||||
when there are errors within an XInclude file (bug 133106).
|
||||
Thanks to Oleg Paraschenko for the assistance.
|
||||
|
||||
Tue Feb 3 09:53:18 PST 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* xmlschemastypes.c: fixed validation of maxLength with no
|
||||
|
@ -458,6 +458,9 @@ xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
|
||||
if ((ctxt->doc != NULL) && (ctxt->doc->dict != NULL) &&
|
||||
(pctxt->myDoc->dict == ctxt->doc->dict))
|
||||
xmlDictReference(ctxt->doc->dict);
|
||||
else if ((pctxt->dict != NULL) &&
|
||||
(pctxt->dict == pctxt->myDoc->dict))
|
||||
xmlDictReference(pctxt->dict);
|
||||
xmlFreeDoc(pctxt->myDoc);
|
||||
}
|
||||
pctxt->myDoc = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user