Release the file after reading

This commit is contained in:
topjohnwu 2017-04-16 04:11:14 +08:00
parent 5c662f1230
commit e99185f011

View File

@ -185,6 +185,7 @@ int load_policydb(const char *filename) {
return 1; return 1;
} }
munmap(map, sb.st_size);
close(fd); close(fd);
return 0; return 0;