aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_broadcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/driver_broadcom.c')
-rw-r--r--wpa_supplicant/driver_broadcom.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/wpa_supplicant/driver_broadcom.c b/wpa_supplicant/driver_broadcom.c
index c5dab46..94dfe81 100644
--- a/wpa_supplicant/driver_broadcom.c
+++ b/wpa_supplicant/driver_broadcom.c
@@ -289,6 +289,7 @@ static void wpa_driver_broadcom_event_receive(int sock, void *ctx,
wwh->type);
break;
}
+ free(data.assoc_info.resp_ies);
}
static void * wpa_driver_broadcom_init(void *ctx, const char *ifname)
@@ -448,9 +449,10 @@ wpa_driver_broadcom_get_scan_results(void *priv,
wsr->version = 107;
wsr->count = 0;
- if (broadcom_ioctl(drv, WLC_SCAN_RESULTS, buf, WLC_IOCTL_MAXLEN) <
- 0)
+ if (broadcom_ioctl(drv, WLC_SCAN_RESULTS, buf, WLC_IOCTL_MAXLEN) < 0) {
+ free(buf);
return -1;
+ }
memset(results, 0, max_size * sizeof(struct wpa_scan_result));
@@ -489,7 +491,8 @@ wpa_driver_broadcom_get_scan_results(void *priv,
wpa_printf(MSG_MSGDUMP, "Received %d bytes of scan results (%d BSSes)",
wsr->buflen, ap_num);
-
+
+ free(buf);
return ap_num;
}