solve SIGSEGV on file not found
This commit is contained in:
parent
d7b210fa52
commit
dd1fbee754
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ int fill_config(controller_settings_t *const conf, const char* file) {
|
|||
fprintf(stderr, "ff_gain (int) configuration not found. Default value will be used.\n");
|
||||
}
|
||||
|
||||
fill_config_err:
|
||||
config_destroy(&cfg);
|
||||
|
||||
fill_config_err:
|
||||
return res;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue