Browse Source

Fix memory leak in wpa_supplicant global bgscan configuration

Global bgscan configuration parameter was not freed when config was
freed.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Ilan Peer 10 years ago
parent
commit
dd09e424c2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wpa_supplicant/config.c

+ 1 - 0
wpa_supplicant/config.c

@@ -2234,6 +2234,7 @@ void wpa_config_free(struct wpa_config *config)
 	os_free(config->sae_groups);
 	wpabuf_free(config->ap_vendor_elements);
 	os_free(config->osu_dir);
+	os_free(config->bgscan);
 	os_free(config->wowlan_triggers);
 	os_free(config);
 }