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

Commit 13f6bb16 authored by Kihyung Lee's avatar Kihyung Lee Committed by android-build-merger
Browse files

Merge "Fix memory leak when GateKeeperProxy.verify() returns" am: 855a643d

am: 17298755

Change-Id: I0e71c2154569613653890fb525743c5f506b0721
parents dd00c24e 17298755
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -235,11 +235,13 @@ public:
    virtual int verify(uint32_t uid,
            const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length,
            const uint8_t *provided_password, uint32_t provided_password_length, bool *request_reenroll) {
        uint8_t *auth_token;
        uint8_t *auth_token = nullptr;
        uint32_t auth_token_length;
        return verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length,
        int ret = verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length,
                provided_password, provided_password_length,
                &auth_token, &auth_token_length, request_reenroll);
        delete [] auth_token;
        return ret;
    }

    virtual int verifyChallenge(uint32_t uid, uint64_t challenge,