Merge "Free mmaped area if keys fail to load"
This commit is contained in:
@@ -229,6 +229,7 @@ really_install_package(const char *path, bool* wipe_cache, bool needs_mount)
|
|||||||
std::vector<Certificate> loadedKeys;
|
std::vector<Certificate> loadedKeys;
|
||||||
if (!load_keys(PUBLIC_KEYS_FILE, loadedKeys)) {
|
if (!load_keys(PUBLIC_KEYS_FILE, loadedKeys)) {
|
||||||
LOGE("Failed to load keys\n");
|
LOGE("Failed to load keys\n");
|
||||||
|
sysReleaseMap(&map);
|
||||||
return INSTALL_CORRUPT;
|
return INSTALL_CORRUPT;
|
||||||
}
|
}
|
||||||
LOGI("%zu key(s) loaded from %s\n", loadedKeys.size(), PUBLIC_KEYS_FILE);
|
LOGI("%zu key(s) loaded from %s\n", loadedKeys.size(), PUBLIC_KEYS_FILE);
|
||||||
|
|||||||
Reference in New Issue
Block a user