From babf67712e4226527730e2fb8c96babdf5486ca5 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 20 Feb 2018 19:00:30 +0300 Subject: Removed unwanted assertions. --- src/nxt_main_process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nxt_main_process.c') diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index f0b55c1b..27bf01f5 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -867,8 +867,9 @@ nxt_main_cleanup_worker_process(nxt_task_t *task, nxt_pid_t pid) buf = nxt_buf_mem_ts_alloc(task, task->thread->engine->mem_pool, sizeof(pid)); - - nxt_assert(buf != NULL); + if (nxt_slow_path(buf == NULL)) { + continue; + } buf->mem.free = nxt_cpymem(buf->mem.free, &pid, sizeof(pid)); -- cgit