summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index cb0519631a..4e41adb10e 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -568,7 +568,7 @@ int php_libxml_decrement_node_ptr(php_libxml_node_object *object TSRMLS_DC) {
obj_node = (php_libxml_node_ptr *) object->node;
ret_refcount = --obj_node->refcount;
if (ret_refcount == 0) {
- if (obj_node->node != NULL && obj_node->node->type != XML_DOCUMENT_NODE) {
+ if (obj_node->node != NULL) {
obj_node->node->_private = NULL;
}
efree(obj_node);