Close config file on error path
authorJouni Malinen <j@w1.fi>
Sat, 9 Jan 2010 20:29:41 +0000 (22:29 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Jan 2010 20:29:41 +0000 (22:29 +0200)
hostapd/config_file.c

index 0ec83b0..10b7a35 100644 (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;
        }