mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 05:41:26 +02:00
BUG/MINOR: proxy/stktable: missing frees on proxy cleanup
In 1b8e68e ("MEDIUM: stick-table: Stop handling stick-tables as proxies.") we forgot to free the table pointer which is now dynamically allocated. Let's take this opportunity to also fix a missing free in the table itself (the table expire task wasn't properly destroyed) This patch depends on: - "MINOR: stktable: add sktable_deinit function" It should be backported in every stable versions.
This commit is contained in:
parent
e10cf61099
commit
2c4943c18b
@ -389,7 +389,9 @@ void free_proxy(struct proxy *p)
|
|||||||
|
|
||||||
pool_destroy(p->req_cap_pool);
|
pool_destroy(p->req_cap_pool);
|
||||||
pool_destroy(p->rsp_cap_pool);
|
pool_destroy(p->rsp_cap_pool);
|
||||||
|
|
||||||
stktable_deinit(p->table);
|
stktable_deinit(p->table);
|
||||||
|
ha_free(&p->table);
|
||||||
|
|
||||||
HA_RWLOCK_DESTROY(&p->lbprm.lock);
|
HA_RWLOCK_DESTROY(&p->lbprm.lock);
|
||||||
HA_RWLOCK_DESTROY(&p->lock);
|
HA_RWLOCK_DESTROY(&p->lock);
|
||||||
|
@ -875,6 +875,7 @@ void stktable_deinit(struct stktable *t)
|
|||||||
{
|
{
|
||||||
if (!t)
|
if (!t)
|
||||||
return;
|
return;
|
||||||
|
task_destroy(t->exp_task);
|
||||||
pool_destroy(t->pool);
|
pool_destroy(t->pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user