From e99185f0116b9b9620d5e794f7c0751ac7133149 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 16 Apr 2017 04:11:14 +0800 Subject: [PATCH] Release the file after reading --- sepolicy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sepolicy.c b/sepolicy.c index 1e783d8e9..7a89f269f 100644 --- a/sepolicy.c +++ b/sepolicy.c @@ -185,6 +185,7 @@ int load_policydb(const char *filename) { return 1; } + munmap(map, sb.st_size); close(fd); return 0;