summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-11-20 17:08:29 +0300
committerMax Romanov <max.romanov@nginx.com>2017-11-20 17:08:29 +0300
commit6bbed85899d16b063df41ffc2cbf314402ad73e6 (patch)
tree79ac837f8c959bc19a7bb1beafaacf336681b7d7 /src/nxt_runtime.c
parentfa76ea700ff2326c929f9c9f5ff40915a41d0a89 (diff)
downloadunit-6bbed85899d16b063df41ffc2cbf314402ad73e6.tar.gz
unit-6bbed85899d16b063df41ffc2cbf314402ad73e6.tar.bz2
Fixing Coverity warnings.
CID 200496 CID 200494 CID 200490 CID 200489 CID 200483 CID 200482 CID 200472 CID 200465
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r--src/nxt_runtime.c3
1 files changed, 3 insertions, 0 deletions
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;
}