Skip to content

Commit a5a6a6d

Browse files
krishna Tkrish2718
authored andcommitted
[nrf noup] COV-177625: Fix double free
The scan result is always freed in the driver for both success and failure cases, so, no need for wpa_supplicant to free in failure case. Signed-off-by: Krishna T <[email protected]>
1 parent 1f72411 commit a5a6a6d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/drivers/driver_zephyr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ void wpa_drv_zep_event_proc_scan_res(struct zep_drv_if_ctx *if_ctx,
146146

147147
if (!tmp) {
148148
wpa_printf(MSG_ERROR, "%s: Failed to realloc scan result array\n", __func__);
149-
os_free(r);
150149
goto err;
151150
}
152151

0 commit comments

Comments
 (0)