File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2335,7 +2335,7 @@ static void php_cli_server_dtor(php_cli_server *server) /* {{{ */
2335
2335
!WIFSIGNALED (php_cli_server_worker_status ));
2336
2336
}
2337
2337
2338
- free (php_cli_server_workers );
2338
+ efree (php_cli_server_workers );
2339
2339
}
2340
2340
#endif
2341
2341
} /* }}} */
@@ -2421,8 +2421,8 @@ static void php_cli_server_startup_workers(void) {
2421
2421
if (php_cli_server_workers_max > 1 ) {
2422
2422
zend_long php_cli_server_worker ;
2423
2423
2424
- php_cli_server_workers = calloc (
2425
- php_cli_server_workers_max , sizeof (pid_t ));
2424
+ php_cli_server_workers = safe_emalloc (
2425
+ php_cli_server_workers_max , sizeof (pid_t ), 0 );
2426
2426
if (!php_cli_server_workers ) {
2427
2427
php_cli_server_workers_max = 1 ;
2428
2428
return ;
You can’t perform that action at this time.
0 commit comments