From: Jouni Malinen Date: Sat, 9 Jan 2010 20:29:41 +0000 (+0200) Subject: Close config file on error path X-Git-Tag: hostap_0_7_1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a8d8b3db5023847ce2ab7c8a40d4c28c4e8b21d;p=thirdparty%2Fhostap.git Close config file on error path --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 0ec83b098..10b7a3597 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -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; }