]> granicus.if.org Git - php/commitdiff
MFH: fixed leaks in array_walk()
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 3 Dec 2002 15:02:55 +0000 (15:02 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 3 Dec 2002 15:02:55 +0000 (15:02 +0000)
ext/standard/array.c

index 66015daf47232f74be32d271f7da99742ad24637..036531fbcbb8e5274800d1e1d490e90ef5080dce 100644 (file)
@@ -994,7 +994,7 @@ static int php_array_walk(HashTable *target_hash, zval **userdata TSRMLS_DC)
 
                zend_hash_move_forward_ex(target_hash, &pos);
        }
-       efree(key);
+       zval_ptr_dtor(&key);
        
        return 0;
 }