mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
CLEANUP: haproxy: Free post_proxy_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:
parent
9e0c2f34dc
commit
53508d6564
@ -2403,6 +2403,7 @@ void deinit(void)
|
|||||||
struct proxy_deinit_fct *pxdf, *pxdfb;
|
struct proxy_deinit_fct *pxdf, *pxdfb;
|
||||||
struct server_deinit_fct *srvdf, *srvdfb;
|
struct server_deinit_fct *srvdf, *srvdfb;
|
||||||
struct post_server_check_fct *pscf, *pscfb;
|
struct post_server_check_fct *pscf, *pscfb;
|
||||||
|
struct post_proxy_check_fct *ppcf, *ppcfb;
|
||||||
|
|
||||||
deinit_signals();
|
deinit_signals();
|
||||||
while (p) {
|
while (p) {
|
||||||
@ -2722,6 +2723,11 @@ void deinit(void)
|
|||||||
free(pscf);
|
free(pscf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list_for_each_entry_safe(ppcf, ppcfb, &post_proxy_check_list, list) {
|
||||||
|
LIST_DEL(&ppcf->list);
|
||||||
|
free(ppcf);
|
||||||
|
}
|
||||||
|
|
||||||
vars_prune(&global.vars, NULL, NULL);
|
vars_prune(&global.vars, NULL, NULL);
|
||||||
pool_destroy_all();
|
pool_destroy_all();
|
||||||
deinit_pollers();
|
deinit_pollers();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user