Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3ddc0a4 authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "Free mmaped area if keys fail to load"

am: f599414a

Change-Id: Id96153c211ca1fcc1cd78d6e662b0b48795c0d76
parents 4e4474c9 f599414a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@ really_install_package(const char *path, bool* wipe_cache, bool needs_mount,
    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);