aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2010-02-08 19:11:52 (GMT)
committerJouni Malinen <j@w1.fi>2010-02-08 19:11:52 (GMT)
commit82f36163aca9b10e42ff78593f1c9b09d745eff6 (patch)
tree2197515005ba5b9fae234f6d36411031a3f9ac96 /src/drivers/driver_bsd.c
parent79e4140c6107af3e2142e9362758419b7c399964 (diff)
downloadhostap-82f36163aca9b10e42ff78593f1c9b09d745eff6.zip
hostap-82f36163aca9b10e42ff78593f1c9b09d745eff6.tar.gz
hostap-82f36163aca9b10e42ff78593f1c9b09d745eff6.tar.bz2
driver_bsd.c: Use os_free() instead of free()
This patch replaces some free() with os_free() when the memory was allocated by os_*().
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 9744570..84be779 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -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 = {