RRM: Fix a memory leak in beacon request handling
Free the pending frequency list if a second beacon request is received before the scan for the previous one has been completed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
401243b73e
commit
4d70b2a4e5
1 changed files with 1 additions and 0 deletions
|
@ -1032,6 +1032,7 @@ wpas_rm_handle_beacon_req(struct wpa_supplicant *wpa_s,
|
||||||
elems_len = len - sizeof(*req);
|
elems_len = len - sizeof(*req);
|
||||||
rand_interval = le_to_host16(req->rand_interval);
|
rand_interval = le_to_host16(req->rand_interval);
|
||||||
|
|
||||||
|
os_free(params->freqs);
|
||||||
os_memset(params, 0, sizeof(*params));
|
os_memset(params, 0, sizeof(*params));
|
||||||
|
|
||||||
data->token = elem_token;
|
data->token = elem_token;
|
||||||
|
|
Loading…
Reference in a new issue