From a6b14bf9fde119e85056ac82a358ddb4fe2aa12d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 26 Jan 2012 17:44:35 +0800 Subject: [PATCH] Clarify the need to use xmlFreeNode after xmlUnlinkNode Just add one small sentence to the xmlUnlinkNode function comments --- tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tree.c b/tree.c index 24db82af..a2fdcbf5 100644 --- a/tree.c +++ b/tree.c @@ -3732,6 +3732,8 @@ xmlFreeNode(xmlNodePtr cur) { * @cur: the node * * Unlink a node from it's current context, the node is not freed + * If one need to free the node, use xmlNodeFree() routine after the + * unlink. */ void xmlUnlinkNode(xmlNodePtr cur) {