mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not the bug itself.
This commit is contained in:
parent
f07eed91c4
commit
4658513d70
@ -1151,7 +1151,7 @@ static void zend_fetch_dimension_address(temp_variable *result, zval **container
|
||||
new_zval->refcount++;
|
||||
if (zend_hash_next_index_insert(container->value.ht, &new_zval, sizeof(zval *), (void **) &retval) == FAILURE) {
|
||||
zend_error(E_WARNING, "Cannot add element to the array as the next element is already occupied");
|
||||
retval = &EG(uninitialized_zval_ptr);
|
||||
retval = &EG(error_zval_ptr);
|
||||
new_zval->refcount--;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user