diff options
-rw-r--r-- | src/nxt_router.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index d4d037e1..b3e326d0 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -3178,6 +3178,10 @@ nxt_router_listen_event_release(nxt_task_t *task, nxt_listen_event_t *lev, nxt_debug(task, "listen event count: %D", lev->count); if (--lev->count == 0) { + if (lev->next != NULL) { + nxt_conn_free(task, lev->next); + } + nxt_free(lev); } |