Skip to content

Commit

Permalink
[nrf noup] zephyr: Fix memory leak
Browse files Browse the repository at this point in the history
nrf-squash! [nrf noup] zephyr: wifi: MBO Pre-certification bugfixes

Free the MLME buffer once it's sent.

Fixes SHEL-2738.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 committed May 31, 2024
1 parent c947dc6 commit e2b94fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/drivers/driver_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,16 @@ static int wpa_drv_zep_send_action(void *priv, unsigned int freq,
os_memcpy(hdr->addr3, bssid, ETH_ALEN);


return dev_ops->send_mlme(if_ctx->dev_priv, buf, 24 + data_len,
ret = dev_ops->send_mlme(if_ctx->dev_priv, buf, 24 + data_len,
0, freq, no_cck, 1,
wait_time, 0);
if (ret) {
wpa_printf(MSG_ERROR, "wpa_supp: Failed to send Action frame: %d", ret);
}

os_free(buf);

return ret;
}

static int nl80211_get_ext_capab(void *priv, enum wpa_driver_if_type type,
Expand Down

0 comments on commit e2b94fd

Please sign in to comment.