diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-09 19:04:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-09 19:04:25 +0000 |
| commit | c993148635ec80e64728c7b86069a4572faf448b (patch) | |
| tree | 7fad17b92d28cb7dc0604d629a1069332cc121f6 | |
| parent | config: load custom key bindings (diff) | |
main: free config if we fail to load the config
| -rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -273,8 +273,10 @@ main(int argc, char *const *argv) argv += optind; struct config conf = {NULL}; - if (!config_load(&conf, conf_path)) + if (!config_load(&conf, conf_path)) { + config_free(conf); return ret; + } setlocale(LC_ALL, ""); if (!locale_is_utf8()) { |
