Move all AOSP code out of recovery binary
Improves license compatibility between GPL and Apache
Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
diff --git a/twrpDigest.cpp b/twrpDigest.cpp
index add498c..663d085 100644
--- a/twrpDigest.cpp
+++ b/twrpDigest.cpp
@@ -36,7 +36,7 @@
#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 @@
while ((len = fread(buf, 1, sizeof(buf), file)) > 0) {
MD5Update(&md5c, buf, len);
}
+ fclose(file);
MD5Final(md5sum ,&md5c);
return 0;
}