Commit a70d62f2 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

make xmlFreeNode() handle attributes correctly. Daniel

* tree.c: make xmlFreeNode() handle attributes correctly.
Daniel
parent b8e99cc1
Thu Nov 7 15:16:02 CET 2002 Daniel Veillard <daniel@veillard.com>
* tree.c: make xmlFreeNode() handle attributes correctly.
Wed Nov 6 23:51:11 CET 2002 Igor Zlatkovic <igor@stud.fh-frankfurt.de>
* catalog.c: completed the #96963 fix, as reported by Karl
......
......@@ -2653,6 +2653,10 @@ xmlFreeNode(xmlNodePtr cur) {
xmlFreeNs((xmlNsPtr) cur);
return;
}
if (cur->type == XML_ATTRIBUTE_NODE) {
xmlFreeProp((xmlAttrPtr) cur);
return;
}
if ((cur->children != NULL) &&
(cur->type != XML_ENTITY_REF_NODE))
xmlFreeNodeList(cur->children);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment