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

Commit a6f2946f authored by Wei Jia's avatar Wei Jia
Browse files

OggExtractor: fix memory leak (MediaBuffer).

Change-Id: Iadf8633615f1813b4611c748f08d08f4f7dfd9ab
parent b818309e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -713,6 +713,7 @@ status_t MyOggExtractor::_readNextPacket(MediaBuffer **out, bool calcVorbisTimes
                    packetSize);

            if (n < (ssize_t)packetSize) {
                buffer->release();
                ALOGV("failed to read %zu bytes at %#016llx, got %zd bytes",
                        packetSize, (long long)dataOffset, n);
                return ERROR_IO;