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

Commit 783932ce authored by Ray Essick's avatar Ray Essick Committed by Automerger Merge Worker
Browse files

Merge "Fix memory leak in metrics handling during error" into udc-dev am: 073d0dc8

parents 10a1ad79 073d0dc8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1909,6 +1909,7 @@ status_t MediaCodec::configure(
        if (mWidth < 0 || mHeight < 0 ||
               (uint64_t)mWidth * mHeight > (uint64_t)INT32_MAX / 4) {
            ALOGE("Invalid size(s), width=%d, height=%d", mWidth, mHeight);
            mediametrics_delete(nextMetricsHandle);
            return BAD_VALUE;
        }