CLEANUP: haproxy: Free post_server_check_list in deinit()
This allocation is technically always reachable and cannot leak, but so are
a few others that *are* freed.
diff --git a/src/haproxy.c b/src/haproxy.c
index 5965956..c3bc1f0 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2607,6 +2607,7 @@
struct post_deinit_fct *pdf, *pdfb;
struct proxy_deinit_fct *pxdf, *pxdfb;
struct server_deinit_fct *srvdf, *srvdfb;
+ struct post_server_check_fct *pscf, *pscfb;
deinit_signals();
while (p) {
@@ -2907,6 +2908,11 @@
free(srvdf);
}
+ list_for_each_entry_safe(pscf, pscfb, &post_server_check_list, list) {
+ LIST_DEL(&pscf->list);
+ free(pscf);
+ }
+
vars_prune(&global.vars, NULL, NULL);
pool_destroy_all();
deinit_pollers();