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

Commit 44dfbadd authored by Devin Moore's avatar Devin Moore Committed by Android (Google) Code Review
Browse files

Merge "Update parcel data pointer after realloc with size 0" into rvc-qpr-dev

parents 6bcb09e6 4a0a55e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2460,7 +2460,7 @@ status_t Parcel::restartWrite(size_t desired)

    releaseObjects();

    if (data) {
    if (data || desired == 0) {
        LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired);
        pthread_mutex_lock(&gParcelGlobalAllocSizeLock);
        gParcelGlobalAllocSize += desired;