mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Core: exit on ngx_pnalloc() failure.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
This commit is contained in:
parent
f240215ba6
commit
1fe0f6a9b9
1 changed files with 4 additions and 0 deletions
|
|
@ -121,6 +121,10 @@ ngx_master_process_cycle(ngx_cycle_t *cycle)
|
|||
}
|
||||
|
||||
title = ngx_pnalloc(cycle->pool, size);
|
||||
if (title == NULL) {
|
||||
/* fatal */
|
||||
exit(2);
|
||||
}
|
||||
|
||||
p = ngx_cpymem(title, master_process, sizeof(master_process) - 1);
|
||||
for (i = 0; i < ngx_argc; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue