summaryrefslogtreecommitdiff
path: root/core/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/hash.c')
-rw-r--r--core/hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hash.c b/core/hash.c
index 557e406..17a8fa3 100644
--- a/core/hash.c
+++ b/core/hash.c
@@ -50,5 +50,8 @@ bop_hash_file(const char *path, char hashres[BOP_HASH_LEN])
for (i = 0; i < SHA256_DIGEST_LENGTH; ++i) {
sprintf((char *)hashres + i*2, "%02X", hash[i]);
}
+
+ munmap(mem, len);
+ close(fd);
return 0;
}