Commit e99185f0 authored by topjohnwu's avatar topjohnwu

Release the file after reading

parent 5c662f12
......@@ -185,6 +185,7 @@ int load_policydb(const char *filename) {
return 1;
}
munmap(map, sb.st_size);
close(fd);
return 0;
......
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