summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-02-27 07:12:14 +0000
committerDmitry Stogov <dmitry@php.net>2006-02-27 07:12:14 +0000
commitcde6f6e0cc2426f888dabb2441d7f6bfaff63bc1 (patch)
treeb8d8da547727ea6020b0de44895622144d3e6b5f
parent3e056bc13c789cc29bafe8d61067d6594c655967 (diff)
downloadphp-git-cde6f6e0cc2426f888dabb2441d7f6bfaff63bc1.tar.gz
Fixed memory leak
-rw-r--r--ext/simplexml/simplexml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 7980c00bd5..9724d9371c 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -332,6 +332,7 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
zval_dtor(&tmp_zv);
}
if (Z_TYPE_P(return_value) == IS_NULL) {
+ return_value->refcount = 1;
zval_ptr_dtor(&return_value);
return_value = &EG(uninitialized_zval);
}