mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
CLEANUP: deinit: release the pre-check callbacks
The freeing of pre-check callbacks was missing when this feature was
recently added with commit b53eb8790
("MINOR: init: add the pre-check
callback"), let's do it to make valgrind happy.
This commit is contained in:
parent
d941146583
commit
65009ebde1
@ -2557,6 +2557,7 @@ void deinit(void)
|
||||
struct post_server_check_fct *pscf, *pscfb;
|
||||
struct post_check_fct *pcf, *pcfb;
|
||||
struct post_proxy_check_fct *ppcf, *ppcfb;
|
||||
struct pre_check_fct *prcf, *prcfb;
|
||||
int cur_fd;
|
||||
|
||||
/* At this point the listeners state is weird:
|
||||
@ -2712,6 +2713,11 @@ void deinit(void)
|
||||
free(ppcf);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(prcf, prcfb, &pre_check_list, list) {
|
||||
LIST_DELETE(&prcf->list);
|
||||
free(prcf);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(tif, tifb, &per_thread_init_list, list) {
|
||||
LIST_DELETE(&tif->list);
|
||||
free(tif);
|
||||
|
Loading…
Reference in New Issue
Block a user