[wireless-regdb] [PATCH 12/40] crda: explicitly munmap() on reglib_get_rd_alpha2()
Luis R. Rodriguez
mcgrof at do-not-panic.com
Thu May 30 22:09:01 EDT 2013
From: "Luis R. Rodriguez" <mcgrof at do-not-panic.com>
Although the region mapped by mmap() is also automatically
unmapped when the process is terminated lets just munmap()
it ourselves to be more tidy.
Signed-off-by: Luis R. Rodriguez <mcgrof at do-not-panic.com>
---
reglib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/reglib.c b/reglib.c
index 867e8cf..bb6f23f 100644
--- a/reglib.c
+++ b/reglib.c
@@ -357,6 +357,7 @@ reglib_get_rd_alpha2(const char *alpha2, const char *file)
out:
close(fd);
+ munmap(db, dblen);
return rd;
}
--
1.7.10.4
More information about the wireless-regdb
mailing list