From: Dragan Dosen Date: Mon, 29 Apr 2019 22:56:20 +0000 (+0200) Subject: BUG/MINOR: checks: free memory allocated for tasklets X-Git-Tag: v2.0-dev3~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=026ef570e16364db5247120d12f0320377a49272;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/haproxy.c b/src/haproxy.c index 93ce987013..603f084cc8 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -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);