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