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

Commit f2854871 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright/foundation: clear type in AMessage::freeItemValue

This avoid double freeing in setItem, or if setEntry fails.

Bug: 79493409
Change-Id: Ie0d4fd7dba4d72ddc0ed00e761743caa9232582d
parent 297912b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -116,6 +116,7 @@ void AMessage::freeItemValue(Item *item) {
        default:
        default:
            break;
            break;
    }
    }
    item->mType = kTypeInt32; // clear type
}
}


#ifdef DUMP_STATS
#ifdef DUMP_STATS