Merge "Free mmaped area if keys fail to load" am: f599414aec

am: b3ddc0a4bf

Change-Id: I204d7fedd2f950da41c3a481231c459fc32d0056
This commit is contained in:
Tao Bao
2016-08-18 06:17:13 +00:00
committed by android-build-merger

View File

@@ -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);