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

Commit 9dcade58 authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-team Robot
Browse files

Fix memory leak and abort

Release all pending buffers in case of error, don't just clear buffers.

Bug: 156819528
Test: fuzzer test case
Change-Id: If925a3b54cacf6cb9ce0e2092866caa68cc4b456
(cherry picked from commit 7662ea5b)
parent 98aff38c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -840,7 +840,7 @@ media_status_t MatroskaSource::readBlock() {
        }
        }


        if (err != OK) {
        if (err != OK) {
            mPendingFrames.clear();
            clearPendingFrames();


            mBlockIter.advance();
            mBlockIter.advance();
            mbuf->release();
            mbuf->release();