]> granicus.if.org Git - php/commitdiff
- Use FREE_HASHTABLE()
authorAndi Gutmans <andi@php.net>
Thu, 12 Aug 2004 06:17:42 +0000 (06:17 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 12 Aug 2004 06:17:42 +0000 (06:17 +0000)
ext/standard/array.c

index f7ea8d1d9601185ae4e6729fb487e3786d727cf1..bfb06e2eaa5544ae2eacd7d6c870fc0777b649a3 100644 (file)
@@ -1988,7 +1988,7 @@ PHP_FUNCTION(array_unshift)
           hashtable and replace it with new one */
        new_hash = php_splice(Z_ARRVAL_P(stack), 0, 0, &args[1], argc-1, NULL);
        zend_hash_destroy(Z_ARRVAL_P(stack));
-       efree(Z_ARRVAL_P(stack));
+       FREE_HASHTABLE(Z_ARRVAL_P(stack));
        Z_ARRVAL_P(stack) = new_hash;
 
        /* Clean up and return the number of elements in the stack */