mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 12:20:59 +01:00
CLEANUP: deinit: release the config postparsers
These ones were not released either, it just requires to export the list
("postparsers") and it makes valgrind happy.
This commit is contained in:
parent
65009ebde1
commit
226866e1bb
@ -88,6 +88,7 @@ struct cfg_postparser {
|
||||
int (*func)();
|
||||
};
|
||||
|
||||
extern struct list postparsers;
|
||||
extern int cfg_maxpconn;
|
||||
extern int cfg_maxconn;
|
||||
extern char *cfg_scope;
|
||||
|
||||
@ -2558,6 +2558,7 @@ void deinit(void)
|
||||
struct post_check_fct *pcf, *pcfb;
|
||||
struct post_proxy_check_fct *ppcf, *ppcfb;
|
||||
struct pre_check_fct *prcf, *prcfb;
|
||||
struct cfg_postparser *pprs, *pprsb;
|
||||
int cur_fd;
|
||||
|
||||
/* At this point the listeners state is weird:
|
||||
@ -2738,6 +2739,11 @@ void deinit(void)
|
||||
free(tff);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(pprs, pprsb, &postparsers, list) {
|
||||
LIST_DELETE(&pprs->list);
|
||||
free(pprs);
|
||||
}
|
||||
|
||||
vars_prune(&proc_vars, NULL, NULL);
|
||||
pool_destroy_all();
|
||||
deinit_pollers();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user