moriyoshi               Tue Dec  3 10:02:57 2002 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/standard  array.c 
  Log:
  MFH: fixed leaks in array_walk()
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.199.2.4 php4/ext/standard/array.c:1.199.2.5
--- php4/ext/standard/array.c:1.199.2.4 Tue Nov 26 17:14:11 2002
+++ php4/ext/standard/array.c   Tue Dec  3 10:02:55 2002
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: array.c,v 1.199.2.4 2002/11/26 22:14:11 moriyoshi Exp $ */
+/* $Id: array.c,v 1.199.2.5 2002/12/03 15:02:55 moriyoshi Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -994,7 +994,7 @@
 
                zend_hash_move_forward_ex(target_hash, &pos);
        }
-       efree(key);
+       zval_ptr_dtor(&key);
        
        return 0;
 }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to