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:
Willy Tarreau 2022-04-27 18:07:24 +02:00
parent 65009ebde1
commit 226866e1bb
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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();