mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
driver_bsd.c: Use os_free() instead of free()
This patch replaces some free() with os_free() when the memory was allocated by os_*().
This commit is contained in:
parent
79e4140c61
commit
82f36163ac
@ -795,7 +795,7 @@ bad:
|
||||
if (drv->ioctl_sock >= 0)
|
||||
close(drv->ioctl_sock);
|
||||
if (drv != NULL)
|
||||
free(drv);
|
||||
os_free(drv);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -811,7 +811,7 @@ bsd_deinit(void *priv)
|
||||
close(drv->ioctl_sock);
|
||||
if (drv->sock_xmit != NULL)
|
||||
l2_packet_deinit(drv->sock_xmit);
|
||||
free(drv);
|
||||
os_free(drv);
|
||||
}
|
||||
|
||||
const struct wpa_driver_ops wpa_driver_bsd_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user