summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-12-28 16:01:06 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-12-28 16:01:06 +0300
commit497faf1b9abb188cab40c389a9e6221add5dd496 (patch)
treecb25d7f278a6706cf6f74cd25982764ca1d0c4f6 /src/nxt_conn.c
parentb59535b22c73b04ed85c0bc1287203e3449c645b (diff)
downloadunit-497faf1b9abb188cab40c389a9e6221add5dd496.tar.gz
unit-497faf1b9abb188cab40c389a9e6221add5dd496.tar.bz2
Changed nxt_mp_retain() and nxt_mp_release() interfaces.
Diffstat (limited to 'src/nxt_conn.c')
-rw-r--r--src/nxt_conn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_conn.c b/src/nxt_conn.c
index 9d30fcfd..854181ca 100644
--- a/src/nxt_conn.c
+++ b/src/nxt_conn.c
@@ -96,9 +96,13 @@ nxt_conn_create(nxt_mp_t *mp, nxt_task_t *task)
void
nxt_conn_free(nxt_task_t *task, nxt_conn_t *c)
{
+ nxt_mp_t *mp;
+
task->thread->engine->connections--;
- nxt_mp_release(c->mem_pool, c);
+ mp = c->mem_pool;
+ nxt_mp_free(mp, c);
+ nxt_mp_release(mp);
}