diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-11-08 14:28:03 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-11-08 14:28:03 +0100 |
commit | f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012 (patch) | |
tree | 2821625d5e2d6089f901a70f2e9c2d0a3efaa7a5 | |
parent | Fix potential tree conflicts with scrypt (diff) | |
download | android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar.gz android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar.bz2 android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar.lz android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar.xz android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.tar.zst android_bootable_recovery-f9796a4a5fc16c90d0326c7d82ca88fa4cbcb012.zip |
-rw-r--r-- | twinstall.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/twinstall.cpp b/twinstall.cpp index 4e478d408..f18570186 100644 --- a/twinstall.cpp +++ b/twinstall.cpp @@ -289,13 +289,17 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { ret_val = verify_file(map.addr, map.length); if (ret_val != VERIFY_SUCCESS) { LOGERR("Zip signature verification failed: %i\n", ret_val); + sysReleaseMap(&map); return -1; } } ret_val = mzOpenZipArchive(map.addr, map.length, &Zip); if (ret_val != 0) { LOGERR("Zip file is corrupt!\n", path); + sysReleaseMap(&map); return INSTALL_CORRUPT; } - return Run_Update_Binary(path, &Zip, wipe_cache); + ret_val = Run_Update_Binary(path, &Zip, wipe_cache); + sysReleaseMap(&map); + return ret_val; } |