summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-08-18 08:14:46 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-08-18 08:14:46 +0200
commitb3ddc0a4bf4334fa114d2b1716675d29a7024c1f (patch)
treeb85cd408f739300b9e9995e4d1d83e1c88355c41 /install.cpp
parentMerge ""view recovery logs" will show /tmp/recovery.log" (diff)
parentMerge "Free mmaped area if keys fail to load" (diff)
downloadandroid_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar.gz
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar.bz2
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar.lz
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar.xz
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.tar.zst
android_bootable_recovery-b3ddc0a4bf4334fa114d2b1716675d29a7024c1f.zip
Diffstat (limited to '')
-rw-r--r--install.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp
index 3d0729064..6c8d827c2 100644
--- a/install.cpp
+++ b/install.cpp
@@ -302,6 +302,7 @@ really_install_package(const char *path, bool* wipe_cache, bool needs_mount,
std::vector<Certificate> loadedKeys;
if (!load_keys(PUBLIC_KEYS_FILE, loadedKeys)) {
LOGE("Failed to load keys\n");
+ sysReleaseMap(&map);
return INSTALL_CORRUPT;
}
LOGI("%zu key(s) loaded from %s\n", loadedKeys.size(), PUBLIC_KEYS_FILE);