diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-02-27 07:12:14 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-02-27 07:12:14 +0000 |
commit | cde6f6e0cc2426f888dabb2441d7f6bfaff63bc1 (patch) | |
tree | b8d8da547727ea6020b0de44895622144d3e6b5f | |
parent | 3e056bc13c789cc29bafe8d61067d6594c655967 (diff) | |
download | php-git-cde6f6e0cc2426f888dabb2441d7f6bfaff63bc1.tar.gz |
Fixed memory leak
-rw-r--r-- | ext/simplexml/simplexml.c | 1 |
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); } |