Changed nxt_mp_retain() and nxt_mp_release() interfaces.

This commit is contained in:
Igor Sysoev
2017-12-28 16:01:06 +03:00
parent b59535b22c
commit 497faf1b9a
9 changed files with 72 additions and 65 deletions

View File

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