mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
MFB:fix memleak in sxe_prop_dim_read()
This commit is contained in:
parent
8593a96034
commit
643d8671e8
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue