Releasing the memory of removed thread pools at exit.

This commit is contained in:
Tiago Natel
2019-10-28 15:49:03 +00:00
parent 13b4538fc7
commit 0b02e74abc

View File

@@ -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);