1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03: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:
William M. Brack 2004-02-04 00:51:21 +00:00
parent fbf2c5eaf5
commit b2d25dd760
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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;