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

index 9c17290e3d9f501dbbb1b655e43c479c72f80edd..fc4ed5e8cbe7de2c79ae9ed365e981c1db4518a1 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;
 }