diff --git a/src/proxy.c b/src/proxy.c index 3407168d1..93f1403db 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -389,7 +389,9 @@ void free_proxy(struct proxy *p) pool_destroy(p->req_cap_pool); pool_destroy(p->rsp_cap_pool); + stktable_deinit(p->table); + ha_free(&p->table); HA_RWLOCK_DESTROY(&p->lbprm.lock); HA_RWLOCK_DESTROY(&p->lock); diff --git a/src/stick_table.c b/src/stick_table.c index 26ea97add..642756831 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -875,6 +875,7 @@ void stktable_deinit(struct stktable *t) { if (!t) return; + task_destroy(t->exp_task); pool_destroy(t->pool); }