Skip to content

Commit ddb5e8b

Browse files
Krishna Trlubos
authored andcommitted
drivers: wifi: Fix freeing non-heap variable
The variable is allocated statically, so, freeing is wrong and causes a crash. Signed-off-by: Krishna T <[email protected]>
1 parent 8292363 commit ddb5e8b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/wifi/nrf700x/zephyr/src/zephyr_fmac_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ enum wifi_nrf_status wifi_nrf_fmac_dev_add_zep(struct wifi_nrf_drv_priv_zep *drv
161161

162162
if (!rpu_ctx) {
163163
LOG_ERR("%s: wifi_nrf_fmac_dev_add failed\n", __func__);
164-
k_free(rpu_ctx_zep);
165164
rpu_ctx_zep = NULL;
166165
goto out;
167166
}

0 commit comments

Comments
 (0)