summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_runtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index 9efe7500..0d20895c 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -658,6 +658,8 @@ nxt_runtime_thread_pool_exit(nxt_task_t *task, void *obj, void *data)
if (tp == thread_pools[i]) {
nxt_array_remove(rt->thread_pools, &thread_pools[i]);
+ nxt_free(tp);
+
if (n == 1) {
/* The last thread pool. */
rt->continuation(task, 0);