From 8ed36563d1be2d020742aad28ceaa1694814c2ce Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 20 Apr 2018 19:46:36 +0300 Subject: [PATCH] Fixed alerts about freeing non-freeable memory on connection close. The nxt_conn_t object is allocated by nxt_zget() and should not be freed. --- src/nxt_conn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nxt_conn.c b/src/nxt_conn.c index c451a38b..9ca3ae8a 100644 --- a/src/nxt_conn.c +++ b/src/nxt_conn.c @@ -99,7 +99,6 @@ nxt_conn_free(nxt_task_t *task, nxt_conn_t *c) task->thread->engine->connections--; mp = c->mem_pool; - nxt_mp_free(mp, c); nxt_mp_release(mp); }