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

* tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe
Daniel
diff --git a/tree.c b/tree.c
index ff47a51..eb988ab 100644
--- a/tree.c
+++ b/tree.c
@@ -5084,7 +5084,7 @@
         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);