1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-28 07:21:26 +03:00

PI nodes in external subset were not freed :-\ fixes bug #112842 Daniel

* tree.c: PI nodes in external subset were not freed :-\
  fixes bug #112842
Daniel
This commit is contained in:
Daniel Veillard 2003-05-12 21:55:03 +00:00
parent 75bb3bbf25
commit d72c7e339c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon May 12 17:53:30 EDT 2003 Daniel Veillard <daniel@veillard.com>
* tree.c: PI nodes in external subset were not freed :-\
fixes bug #112842
Mon May 12 11:23:27 EDT 2003 Daniel Veillard <daniel@veillard.com>
* xmllint.c: added --schema option to run WXS schema validation

2
tree.c
View File

@ -904,7 +904,7 @@ xmlFreeDtd(xmlDtdPtr cur) {
*/
while (c != NULL) {
next = c->next;
if (c->type == XML_COMMENT_NODE) {
if ((c->type == XML_COMMENT_NODE) || (c->type == XML_PI_NODE)) {
xmlUnlinkNode(c);
xmlFreeNode(c);
}