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:
Masashi Honma 2010-02-08 21:11:52 +02:00 committed by Jouni Malinen
parent 79e4140c61
commit 82f36163ac

View file

@ -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 = {