summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-08-18 08:10:34 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-08-18 08:10:35 +0200
commitf599414aecd1f57059c763460b882086824e728d (patch)
tree21ea4accccd6cb53949a5fce1812c7aa574fa43a
parentMerge ""view recovery logs" will show /tmp/recovery.log" (diff)
parentFree mmaped area if keys fail to load (diff)
downloadandroid_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar.gz
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar.bz2
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar.lz
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar.xz
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.tar.zst
android_bootable_recovery-f599414aecd1f57059c763460b882086824e728d.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 9106db595..fa7b73e56 100644
--- a/install.cpp
+++ b/install.cpp
@@ -229,6 +229,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);