mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
MFB:fix memleak in sxe_prop_dim_read()
This commit is contained in:
parent
8593a96034
commit
643d8671e8
@ -271,9 +271,6 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
|
||||
name = Z_STRVAL_P(member);
|
||||
}
|
||||
|
||||
MAKE_STD_ZVAL(return_value);
|
||||
ZVAL_NULL(return_value);
|
||||
|
||||
GET_NODE(sxe, node);
|
||||
|
||||
if (sxe->iter.type == SXE_ITER_ATTRLIST) {
|
||||
@ -294,6 +291,9 @@ static zval * sxe_prop_dim_read(zval *object, zval *member, zend_bool elements,
|
||||
}
|
||||
}
|
||||
|
||||
MAKE_STD_ZVAL(return_value);
|
||||
ZVAL_NULL(return_value);
|
||||
|
||||
if (node) {
|
||||
if (attribs) {
|
||||
if (Z_TYPE_P(member) != IS_LONG || sxe->iter.type == SXE_ITER_ATTRLIST) {
|
||||
|
Loading…
Reference in New Issue
Block a user