Close config file on error path
This commit is contained in:
parent
612162430f
commit
9a8d8b3db5
1 changed files with 1 additions and 0 deletions
|
@ -1155,6 +1155,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
||||||
if (conf->driver == NULL) {
|
if (conf->driver == NULL) {
|
||||||
wpa_printf(MSG_ERROR, "No driver wrappers registered!");
|
wpa_printf(MSG_ERROR, "No driver wrappers registered!");
|
||||||
hostapd_config_free(conf);
|
hostapd_config_free(conf);
|
||||||
|
fclose(f);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue