make xmlFreeNode() handle attributes correctly. Daniel

* tree.c: make xmlFreeNode() handle attributes correctly.
Daniel
diff --git a/tree.c b/tree.c
index 9226730..44ea7a5 100644
--- a/tree.c
+++ b/tree.c
@@ -2653,6 +2653,10 @@
 	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);