diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-02-20 19:00:30 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-02-20 19:00:30 +0300 |
commit | babf67712e4226527730e2fb8c96babdf5486ca5 (patch) | |
tree | 732d50d6a28ffb5c8263bdedc66c8c9a7d42ba6d /src/nxt_main_process.c | |
parent | ee39da0e00423d2e4f109f90142c3543e819c14d (diff) | |
download | unit-babf67712e4226527730e2fb8c96babdf5486ca5.tar.gz unit-babf67712e4226527730e2fb8c96babdf5486ca5.tar.bz2 |
Removed unwanted assertions.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_main_process.c | 5 |
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)); |