[PATCH] atheros: fix glibc 'invalid pointer' error when WPA_TRACE is enabled

Baruch Siach baruch
Thu Jun 9 01:48:46 PDT 2011


Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 src/drivers/driver_atheros.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 96ef8bb..1e78f6e 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -1116,7 +1116,7 @@ atheros_get_we_version(struct atheros_driver_data *drv)
 		drv->we_version = range->we_version_compiled;
 	}
 
-	free(range);
+	os_free(range);
 	return 0;
 }
 
-- 
1.7.5.3




More information about the Hostap mailing list