summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-02-20 19:00:30 +0300
committerMax Romanov <max.romanov@nginx.com>2018-02-20 19:00:30 +0300
commitbabf67712e4226527730e2fb8c96babdf5486ca5 (patch)
tree732d50d6a28ffb5c8263bdedc66c8c9a7d42ba6d /src/nxt_main_process.c
parentee39da0e00423d2e4f109f90142c3543e819c14d (diff)
downloadunit-babf67712e4226527730e2fb8c96babdf5486ca5.tar.gz
unit-babf67712e4226527730e2fb8c96babdf5486ca5.tar.bz2
Removed unwanted assertions.
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c5
1 files changed, 3 insertions, 2 deletions
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));