Commit 120c2ea6 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez

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: 's avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
parent 1acf75e9
......@@ -357,6 +357,7 @@ reglib_get_rd_alpha2(const char *alpha2, const char *file)
out:
close(fd);
munmap(db, dblen);
return rd;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment