diff options
author | Tiago Natel <t.nateldemoura@f5.com> | 2019-10-28 15:49:03 +0000 |
---|---|---|
committer | Tiago Natel <t.nateldemoura@f5.com> | 2019-10-28 15:49:03 +0000 |
commit | 0b02e74abcb460ef61292ae3fe015489d51946a3 (patch) | |
tree | da0920c38bbb76de8aad8343b55afd6da4644b39 /src/nxt_runtime.c | |
parent | 13b4538fc7660d2fa697f4aa3ab057ac748264bc (diff) | |
download | unit-0b02e74abcb460ef61292ae3fe015489d51946a3.tar.gz unit-0b02e74abcb460ef61292ae3fe015489d51946a3.tar.bz2 |
Releasing the memory of removed thread pools at exit.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 2 |
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); |