Close config file on error path

This commit is contained in:
Jouni Malinen 2010-01-09 22:29:41 +02:00
parent 612162430f
commit 9a8d8b3db5

View file

@ -1155,6 +1155,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
if (conf->driver == NULL) {
wpa_printf(MSG_ERROR, "No driver wrappers registered!");
hostapd_config_free(conf);
fclose(f);
return NULL;
}