summaryrefslogtreecommitdiffstats
path: root/twrpDigest.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrpDigest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrpDigest.cpp b/twrpDigest.cpp
index add498c6c..663d08566 100644
--- a/twrpDigest.cpp
+++ b/twrpDigest.cpp
@@ -36,7 +36,7 @@ extern "C" {
#include <sstream>
#include <dirent.h>
#include <sys/mman.h>
-#include "common.h"
+#include "twcommon.h"
#include "data.hpp"
#include "variables.h"
#include "twrp-functions.hpp"
@@ -61,6 +61,7 @@ int twrpDigest::computeMD5(void) {
while ((len = fread(buf, 1, sizeof(buf), file)) > 0) {
MD5Update(&md5c, buf, len);
}
+ fclose(file);
MD5Final(md5sum ,&md5c);
return 0;
}