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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue