mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-14 20:10:32 -04:00
CLEANUP: haproxy: Free proxy_deinit_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
041a626a8a
commit
17e363f751
1 changed files with 6 additions and 1 deletions
|
|
@ -2605,7 +2605,7 @@ void deinit(void)
|
|||
struct bind_conf *bind_conf, *bind_back;
|
||||
struct build_opts_str *bol, *bolb;
|
||||
struct post_deinit_fct *pdf;
|
||||
struct proxy_deinit_fct *pxdf;
|
||||
struct proxy_deinit_fct *pxdf, *pxdfb;
|
||||
struct server_deinit_fct *srvdf;
|
||||
|
||||
deinit_signals();
|
||||
|
|
@ -2892,6 +2892,11 @@ void deinit(void)
|
|||
free(bol);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(pxdf, pxdfb, &proxy_deinit_list, list) {
|
||||
LIST_DEL(&pxdf->list);
|
||||
free(pxdf);
|
||||
}
|
||||
|
||||
vars_prune(&global.vars, NULL, NULL);
|
||||
pool_destroy_all();
|
||||
deinit_pollers();
|
||||
|
|
|
|||
Loading…
Reference in a new issue