commit | 7f8dc846a3cd697d28dd9a50d802dd72f320ebf5 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Aug 18 06:17:13 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Aug 18 06:17:13 2016 +0000 |
tree | 6ce3ef09ac9c92f9b5cf4f0dddf1a0f9d20d130d | |
parent | e254b4e9e4ac843e3e2ac9c81b600b7f8d024a0b [diff] | |
parent | b3ddc0a4bf4334fa114d2b1716675d29a7024c1f [diff] |
Merge "Free mmaped area if keys fail to load" am: f599414aec am: b3ddc0a4bf Change-Id: I204d7fedd2f950da41c3a481231c459fc32d0056
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);