config: config_free(): pass conf struct by pointer, not by-value

This commit is contained in:
Daniel Eklöf 2022-04-12 13:01:56 +02:00
parent 06d7432af3
commit 99db7aa7cf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 49 additions and 49 deletions

6
main.c
View file

@ -485,12 +485,12 @@ main(int argc, char *const *argv)
tll_free(overrides);
if (!conf_successful) {
config_free(conf);
config_free(&conf);
return ret;
}
if (check_config) {
config_free(conf);
config_free(&conf);
return EXIT_SUCCESS;
}
@ -663,7 +663,7 @@ out:
fdm_signal_del(fdm, SIGINT);
fdm_destroy(fdm);
config_free(conf);
config_free(&conf);
if (unlink_pid_file)
unlink(pid_file);