summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}