]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: checks: free memory allocated for tasklets
authorDragan Dosen <ddosen@haproxy.com>
Mon, 29 Apr 2019 22:56:20 +0000 (00:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 May 2019 08:05:09 +0000 (10:05 +0200)
The check->wait_list.task and agent->wait_list.task were not
freed properly on deinit().

This patch should be backported to 1.9.

src/haproxy.c

index 93ce987013b88dee00df1fb05023946b7719b37e..603f084cc8eff4b2e04aac765a6cf7536c5c8ddd 100644 (file)
@@ -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);