mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-02 10:12:03 +00:00
CLEANUP: haproxy: Free server_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
fdf904a297
commit
0837eb11cf
@ -2606,7 +2606,7 @@ void deinit(void)
|
||||
struct build_opts_str *bol, *bolb;
|
||||
struct post_deinit_fct *pdf, *pdfb;
|
||||
struct proxy_deinit_fct *pxdf, *pxdfb;
|
||||
struct server_deinit_fct *srvdf;
|
||||
struct server_deinit_fct *srvdf, *srvdfb;
|
||||
|
||||
deinit_signals();
|
||||
while (p) {
|
||||
@ -2902,6 +2902,11 @@ void deinit(void)
|
||||
free(pdf);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(srvdf, srvdfb, &server_deinit_list, list) {
|
||||
LIST_DEL(&srvdf->list);
|
||||
free(srvdf);
|
||||
}
|
||||
|
||||
vars_prune(&global.vars, NULL, NULL);
|
||||
pool_destroy_all();
|
||||
deinit_pollers();
|
||||
|
Loading…
Reference in New Issue
Block a user