mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: config_free(): pass conf struct by pointer, not by-value
This commit is contained in:
parent
06d7432af3
commit
99db7aa7cf
5 changed files with 49 additions and 49 deletions
6
main.c
6
main.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue