mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
Fixed refcounting
This commit is contained in:
parent
9d6cce629a
commit
c5a508582f
@ -424,7 +424,6 @@ zval *zend_std_read_property(zval *object, zval *member, int type, const zend_li
|
||||
zend_object *zobj;
|
||||
zval tmp_member;
|
||||
zval *retval;
|
||||
//??? zval rv;
|
||||
zend_property_info *property_info;
|
||||
int silent;
|
||||
|
||||
@ -518,9 +517,9 @@ zval *zend_std_read_property(zval *object, zval *member, int type, const zend_li
|
||||
}
|
||||
exit:
|
||||
if (UNEXPECTED(Z_TYPE(tmp_member) != IS_UNDEF)) {
|
||||
Z_ADDREF_P(retval);
|
||||
if (Z_REFCOUNTED_P(retval)) Z_ADDREF_P(retval);
|
||||
zval_ptr_dtor(&tmp_member);
|
||||
Z_DELREF_P(retval);
|
||||
if (Z_REFCOUNTED_P(retval)) Z_DELREF_P(retval);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user