commit | f599414aecd1f57059c763460b882086824e728d | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Aug 18 06:10:34 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Aug 18 06:10:35 2016 +0000 |
tree | 21ea4accccd6cb53949a5fce1812c7aa574fa43a | |
parent | c158cf0a1418d52530d0e4cb1facb83270aacc29 [diff] | |
parent | edafac6c7b76d1ff7335d5b532f7d92816073ec5 [diff] |
Merge "Free mmaped area if keys fail to load"
diff --git a/install.cpp b/install.cpp index 9106db5..fa7b73e 100644 --- a/install.cpp +++ b/install.cpp
@@ -229,6 +229,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);