summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-10-28 15:49:03 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-10-28 15:49:03 +0000
commit0b02e74abcb460ef61292ae3fe015489d51946a3 (patch)
treeda0920c38bbb76de8aad8343b55afd6da4644b39 /src
parent13b4538fc7660d2fa697f4aa3ab057ac748264bc (diff)
downloadunit-0b02e74abcb460ef61292ae3fe015489d51946a3.tar.gz
unit-0b02e74abcb460ef61292ae3fe015489d51946a3.tar.bz2
Releasing the memory of removed thread pools at exit.
Diffstat (limited to '')
-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);