Commit c587bce5 authored by Daniel Veillard's avatar Daniel Veillard

fixed bug #303682 of a leak reported by Malcolm Rowe Daniel

* tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe
Daniel
parent 8aa7afa6
Tue May 10 17:27:52 CEST 2005 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe
Tue May 10 11:50:16 CEST 2005 Daniel Veillard <daniel@veillard.com>
* testapi.c: applied patch from Steve Nairn tof fix the compilation
......
......@@ -5084,7 +5084,7 @@ xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content) {
case XML_COMMENT_NODE:
if (cur->content != NULL) {
if (!((cur->doc != NULL) && (cur->doc->dict != NULL) &&
(!xmlDictOwns(cur->doc->dict, cur->content))))
(xmlDictOwns(cur->doc->dict, cur->content))))
xmlFree(cur->content);
}
if (cur->children != NULL) xmlFreeNodeList(cur->children);
......
Markdown is supported
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