projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e4140
)
driver_bsd.c: Use os_free() instead of free()
author
Masashi Honma
<honma@ictec.co.jp>
Mon, 8 Feb 2010 19:11:52 +0000
(21:11 +0200)
committer
Jouni Malinen
<j@w1.fi>
Mon, 8 Feb 2010 19:11:52 +0000
(21:11 +0200)
This patch replaces some free() with os_free() when the memory was
allocated by os_*().
src/drivers/driver_bsd.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_bsd.c
b/src/drivers/driver_bsd.c
index
9744570
..
84be779
100644
(file)
--- 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 = {