File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
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
+ pefree (php_cli_server_workers , 1 );
2339
2339
}
2340
2340
#endif
2341
2341
} /* }}} */
@@ -2421,12 +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 ));
2426
- if (!php_cli_server_workers ) {
2427
- php_cli_server_workers_max = 1 ;
2428
- return ;
2429
- }
2424
+ php_cli_server_workers = pecalloc (
2425
+ php_cli_server_workers_max , sizeof (pid_t ), 1 );
2430
2426
2431
2427
php_cli_server_master = getpid ();
2432
2428
You can’t perform that action at this time.
0 commit comments