diff options
-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)); } |