diff options
-rw-r--r-- | tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4893,7 +4893,9 @@ xmlGetNodePath(const xmlNode *node) } next = ((xmlAttrPtr) cur)->parent; } else { - next = cur->parent; + xmlFree(buf); + xmlFree(buffer); + return (NULL); } /* |