aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-05-29 15:19:40 -0700
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-05-29 15:19:40 -0700
commit120c2ea6c3ffdebd696a0ab29ac8762e3d181418 (patch)
tree2f876357f31400c9e109aa987366735e5ddb9a4b
parent1acf75e958ede8d78bcf6b0e56695151f563352e (diff)
downloadcrda-120c2ea6c3ffdebd696a0ab29ac8762e3d181418.tar.gz
crda: explicitly munmap() on reglib_get_rd_alpha2()
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@do-not-panic.com>
-rw-r--r--reglib.c1
1 files changed, 1 insertions, 0 deletions
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;
}