mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue