com php-src: Reverted "efree(args);" removed by mistake: ext/standard/array.c

From: Date: Wed, 05 Mar 2014 11:49:24 +0000
Subject: com php-src: Reverted "efree(args);" removed by mistake: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77759@lists.php.net to get a copy of this message
Commit: 7320abbaa94ec4d7ee22f57bb1d6f640099acd74 Author: Dmitry Stogov <dmitry@zend.com> Wed, 5 Mar 2014 15:49:24 +0400 Parents: 50d899dda3d225c962fec1b8cce1cb880c84999e Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7320abbaa94ec4d7ee22f57bb1d6f640099acd74 Log: Reverted "efree(args);" removed by mistake Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 9c741ed..c6806d3 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -4316,6 +4316,7 @@ PHP_FUNCTION(array_map) for (i = 0; i < n_arrays; i++) { if (Z_TYPE(arrays[i]) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d should be an array", i + 2); + efree(args); efree(array_len); efree(array_pos); return; @@ -4335,6 +4336,7 @@ PHP_FUNCTION(array_map) RETVAL_ZVAL(args[0], 1, 0); efree(array_len); efree(array_pos); + efree(args); return; } @@ -4386,6 +4388,7 @@ PHP_FUNCTION(array_map) if (zend_call_function(&fci, &fci_cache TSRMLS_CC) != SUCCESS || Z_TYPE(result) == IS_UNDEF) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "An error occurred while invoking the map callback"); efree(array_len); + efree(args); efree(array_pos); zval_dtor(return_value); efree(params); @@ -4408,6 +4411,7 @@ PHP_FUNCTION(array_map) efree(params); efree(array_len); efree(array_pos); + efree(args); } /* }}} */

« previous php.cvs (#77759) next »