summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 0cee933f..5116234c 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -1540,7 +1540,12 @@ nxt_router_listen_socket_update(nxt_task_t *task, void *obj, void *data)
nxt_event_engine_post(job->tmcf->engine, &job->work);
- nxt_router_conf_release(task, old);
+ /*
+ * The task is allocated from configuration temporary
+ * memory pool so it can be freed after engine post operation.
+ */
+
+ nxt_router_conf_release(&engine->task, old);
}