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

Commit ab34612a authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix memory leak in error case

Bug: 37239013
Change-Id: Ic33e0f7ed946d0729efa46f69aff1a5d35e81b1e
parent 922ad618
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1140,6 +1140,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            ALOGV("allocated pssh @ %p", pssh.data);
            ssize_t requested = (ssize_t) pssh.datalen;
            if (mDataSource->readAt(data_offset + 24, pssh.data, requested) < requested) {
                delete[] pssh.data;
                return ERROR_IO;
            }
            mPssh.push_back(pssh);