From 6bbed85899d16b063df41ffc2cbf314402ad73e6 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 20 Nov 2017 17:08:29 +0300 Subject: Fixing Coverity warnings. CID 200496 CID 200494 CID 200490 CID 200489 CID 200483 CID 200482 CID 200472 CID 200465 --- src/nxt_runtime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nxt_runtime.c') diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 60ce45f6..d07a1b3b 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -1696,6 +1696,9 @@ nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid) process = nxt_runtime_process_new(rt); if (nxt_slow_path(process == NULL)) { + + nxt_thread_mutex_unlock(&rt->processes_mutex); + return NULL; } -- cgit