]> granicus.if.org Git - php/commitdiff
fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not...
authorDmitry Stogov <dmitry@php.net>
Tue, 7 Jun 2005 10:29:42 +0000 (10:29 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 7 Jun 2005 10:29:42 +0000 (10:29 +0000)
Zend/zend_execute.c

index f81cc54cf02adb5568f5e3e151c7060becf32e0c..661322fa1339e3e164426237a5238019009c8c9e 100644 (file)
@@ -934,7 +934,7 @@ static void zend_fetch_dimension_address(znode *result, znode *op1, znode *op2,
                                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 {