commit | b3ddc0a4bf4334fa114d2b1716675d29a7024c1f | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Aug 18 06:14:46 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Aug 18 06:14:46 2016 +0000 |
tree | b85cd408f739300b9e9995e4d1d83e1c88355c41 | |
parent | 4e4474c9c596e1feda81a97e7c4e95b5d2e68467 [diff] | |
parent | f599414aecd1f57059c763460b882086824e728d [diff] |
Merge "Free mmaped area if keys fail to load" am: f599414aec Change-Id: Id96153c211ca1fcc1cd78d6e662b0b48795c0d76
diff --git a/install.cpp b/install.cpp index 3d07290..6c8d827 100644 --- a/install.cpp +++ b/install.cpp
@@ -302,6 +302,7 @@ 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);