From: Dmitry Stogov Date: Mon, 27 Feb 2006 07:12:14 +0000 (+0000) Subject: Fixed memory leak X-Git-Tag: php-5.1.3RC1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cde6f6e0cc2426f888dabb2441d7f6bfaff63bc1;p=php Fixed memory leak --- 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); }