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

Commit 185a1931 authored by Gloria Wang's avatar Gloria Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix a memory leak in the Forward Lock plugin. For bug 4770217."

parents fb6c6167 409e5a07
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -512,6 +512,19 @@ status_t FwdLockEngine::onCloseDecryptSession(int uniqueId,
        }
    }

    if (NULL != decryptHandle) {
        if (NULL != decryptHandle->decryptInfo) {
            delete decryptHandle->decryptInfo;
            decryptHandle->decryptInfo = NULL;
        }

        decryptHandle->copyControlVector.clear();
        decryptHandle->extendedData.clear();

        delete decryptHandle;
        decryptHandle = NULL;
    }

    LOGV("FwdLockEngine::onCloseDecryptSession Exit");
    return result;
}