summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-11-27 17:52:28 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-11-27 17:52:28 +0300
commit80e8ce832265477693b4ec183f1ee63d89d1c90d (patch)
tree7e3325ac9ac743e6c8485df3406959323c041ad2 /src/nxt_router.c
parent863377441bdc70885d1bad80bbbd9c6a9a3646a7 (diff)
downloadunit-80e8ce832265477693b4ec183f1ee63d89d1c90d.tar.gz
unit-80e8ce832265477693b4ec183f1ee63d89d1c90d.tar.bz2
A number of engine connections is decreased on connection close.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 1a9ec32c..e29dc572 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -3662,7 +3662,7 @@ nxt_router_conn_free(nxt_task_t *task, void *obj, void *data)
nxt_mp_cleanup(c->mem_pool, nxt_router_conn_mp_cleanup,
&engine->task, joint, NULL);
- nxt_mp_release(c->mem_pool, c);
+ nxt_conn_free(task, c);
}