mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MINOR: checks: free memory allocated for tasklets
The check->wait_list.task and agent->wait_list.task were not freed properly on deinit(). This patch should be backported to 1.9.
This commit is contained in:
parent
61302da0e7
commit
026ef570e1
1 changed files with 5 additions and 0 deletions
|
|
@ -2295,6 +2295,11 @@ void deinit(void)
|
|||
if (s->agent.task)
|
||||
task_destroy(s->agent.task);
|
||||
|
||||
if (s->check.wait_list.task)
|
||||
tasklet_free(s->check.wait_list.task);
|
||||
if (s->agent.wait_list.task)
|
||||
tasklet_free(s->agent.wait_list.task);
|
||||
|
||||
if (s->warmup)
|
||||
task_destroy(s->warmup);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue