diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2009-12-03 20:59:27 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-03 20:59:27 +0200 |
commit | 4e2225a52026163ba5ed5eb03617dccd1ca444cf (patch) | |
tree | 75153089378273e22faa88e8e9e50bd66f63c7b4 | |
parent | 362bd35f2d3506a67a8d71e802564f22ca7d1ef4 (diff) | |
download | external_wpa_supplicant_8_ti-4e2225a52026163ba5ed5eb03617dccd1ca444cf.zip external_wpa_supplicant_8_ti-4e2225a52026163ba5ed5eb03617dccd1ca444cf.tar.gz external_wpa_supplicant_8_ti-4e2225a52026163ba5ed5eb03617dccd1ca444cf.tar.bz2 |
Fix wpa_priv memory leak in wpa_priv_get_scan_results2()
I suspect that new scan results format demands more complex free
procedure.
-rw-r--r-- | wpa_supplicant/wpa_priv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_priv.c b/wpa_supplicant/wpa_priv.c index 975a4ed..046f378 100644 --- a/wpa_supplicant/wpa_priv.c +++ b/wpa_supplicant/wpa_priv.c @@ -146,12 +146,12 @@ static void wpa_priv_get_scan_results2(struct wpa_priv_interface *iface, sizeof(*from)); os_free(buf); - os_free(res); + wpa_scan_results_free(res); return; fail: os_free(buf); - os_free(res); + wpa_scan_results_free(res); sendto(iface->fd, "", 0, 0, (struct sockaddr *) from, sizeof(*from)); } |