aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2009-12-03 18:59:27 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 18:55:48 (GMT)
commitda813798705a92a62a451cbbfe017e67fbb5bb28 (patch)
tree12a390697f6f3c7a851721d117e35f2851165592
parent4f8423d66de248fb01652ed7a8934ade51a035b9 (diff)
downloadhostap-06-da813798705a92a62a451cbbfe017e67fbb5bb28.zip
hostap-06-da813798705a92a62a451cbbfe017e67fbb5bb28.tar.gz
hostap-06-da813798705a92a62a451cbbfe017e67fbb5bb28.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. (cherry picked from commit 4e2225a52026163ba5ed5eb03617dccd1ca444cf)
-rw-r--r--wpa_supplicant/wpa_priv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_priv.c b/wpa_supplicant/wpa_priv.c
index 4a27125..4ff0284 100644
--- a/wpa_supplicant/wpa_priv.c
+++ b/wpa_supplicant/wpa_priv.c
@@ -172,12 +172,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));
}