File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4316,6 +4316,7 @@ PHP_FUNCTION(array_map)
4316
4316
for (i = 0 ; i < n_arrays ; i ++ ) {
4317
4317
if (Z_TYPE (arrays [i ]) != IS_ARRAY ) {
4318
4318
php_error_docref (NULL TSRMLS_CC , E_WARNING , "Argument #%d should be an array" , i + 2 );
4319
+ efree (args );
4319
4320
efree (array_len );
4320
4321
efree (array_pos );
4321
4322
return ;
@@ -4335,6 +4336,7 @@ PHP_FUNCTION(array_map)
4335
4336
RETVAL_ZVAL (args [0 ], 1 , 0 );
4336
4337
efree (array_len );
4337
4338
efree (array_pos );
4339
+ efree (args );
4338
4340
return ;
4339
4341
}
4340
4342
@@ -4386,6 +4388,7 @@ PHP_FUNCTION(array_map)
4386
4388
if (zend_call_function (& fci , & fci_cache TSRMLS_CC ) != SUCCESS || Z_TYPE (result ) == IS_UNDEF ) {
4387
4389
php_error_docref (NULL TSRMLS_CC , E_WARNING , "An error occurred while invoking the map callback" );
4388
4390
efree (array_len );
4391
+ efree (args );
4389
4392
efree (array_pos );
4390
4393
zval_dtor (return_value );
4391
4394
efree (params );
@@ -4408,6 +4411,7 @@ PHP_FUNCTION(array_map)
4408
4411
efree (params );
4409
4412
efree (array_len );
4410
4413
efree (array_pos );
4414
+ efree (args );
4411
4415
}
4412
4416
/* }}} */
4413
4417
You can’t perform that action at this time.
0 commit comments