[prev in list] [next in list] [prev in thread] [next in thread]
List: hostap
Subject: [PATCH] driver_bsd.c: Use os_free() instead of free()
From: Masashi Honma <honma () ictec ! co ! jp>
Date: 2010-01-18 0:59:47
Message-ID: 4B53B283.3080106 () ictec ! co ! jp
[Download RAW message or body]
Hello.
This patch replaces some free() with os_free(). Because the
freeing poiter was allocated by os_*().
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 = {
Regards,
Masashi Honma.
_______________________________________________
HostAP mailing list
HostAP@lists.shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic