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.
This commit is contained in:
Tim Duesterhus 2020-09-10 19:46:42 +02:00 committed by Willy Tarreau
parent f0c25d210c
commit fc85494c99
1 changed files with 6 additions and 0 deletions

View File

@ -2407,6 +2407,7 @@ void deinit(void)
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 @@ void deinit(void)
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);