diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-15 23:01:44 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-15 23:11:59 +0100 |
commit | 9d5ee85c3ecc01d679ff23f25fa0efbf6743e7a2 (patch) | |
tree | 6156853eb22943f584a366fcb1d24bc15fbd47e2 /src/conf.h | |
parent | 372d7ff8241888bc3895182b39497fa23381b7e7 (diff) |
fix free()ing of config items
- we need to free the config after it has been succesfully loaded,
not unconditionally before reloading.
- we also need to free them before exiting from the main program
to have clean valgrind output.
Diffstat (limited to 'src/conf.h')
-rw-r--r-- | src/conf.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -116,5 +116,6 @@ struct config_s { extern int reload_config_file (const char *config_fname, struct config_s *conf); int config_compile_regex (void); +void free_config (struct config_s *conf); #endif |