diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-05-29 15:19:40 -0700 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-05-29 15:19:40 -0700 |
commit | 120c2ea6c3ffdebd696a0ab29ac8762e3d181418 (patch) | |
tree | 2f876357f31400c9e109aa987366735e5ddb9a4b | |
parent | 1acf75e958ede8d78bcf6b0e56695151f563352e (diff) | |
download | crda-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -357,6 +357,7 @@ reglib_get_rd_alpha2(const char *alpha2, const char *file) out: close(fd); + munmap(db, dblen); return rd; } |