CLEANUP: haproxy: Free post_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 0dc81c7..e70870a 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2407,6 +2407,7 @@
struct per_thread_alloc_fct *taf, *tafb;
struct per_thread_free_fct *tff, *tffb;
struct post_server_check_fct *pscf, *pscfb;
+ struct post_check_fct *pcf, *pcfb;
struct post_proxy_check_fct *ppcf, *ppcfb;
deinit_signals();
@@ -2722,6 +2723,11 @@
free(srvdf);
}
+ list_for_each_entry_safe(pcf, pcfb, &post_check_list, list) {
+ LIST_DEL(&pcf->list);
+ free(pcf);
+ }
+
list_for_each_entry_safe(pscf, pscfb, &post_server_check_list, list) {
LIST_DEL(&pscf->list);
free(pscf);