mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
config: close FD if it is *valid*, not when it is *invalid*
This commit is contained in:
parent
a24109a5e3
commit
6f114f639a
1 changed files with 1 additions and 1 deletions
2
config.c
2
config.c
|
|
@ -1849,7 +1849,7 @@ out:
|
||||||
tll_push_back(conf->fonts, config_font_parse("monospace"));
|
tll_push_back(conf->fonts, config_font_parse("monospace"));
|
||||||
|
|
||||||
free(conf_file.path);
|
free(conf_file.path);
|
||||||
if (conf_file.fd < 0)
|
if (conf_file.fd >= 0)
|
||||||
close(conf_file.fd);
|
close(conf_file.fd);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue