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

Commit 504a885b authored by Yunlian Jiang's avatar Yunlian Jiang Committed by android-build-merger
Browse files

Merge "fix Potential leak of memory pointed to by 'sourcesLiteral'" am: fa81ba87 am: e16a2029

am: 228b9dec

Change-Id: Id1062cbb6be6c6f02ee09bd575b40ccd49b20b78
parents 33091682 228b9dec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ status_t RouteTraits::deserialize(_xmlDoc */*doc*/, const _xmlNode *root, PtrEle
            sp<AudioPort> source = ctx->findPortByTagName(String8(devTag));
            if (source == NULL) {
                ALOGE("%s: no source found with name=%s", __FUNCTION__, devTag);
                free(sourcesLiteral);
                return BAD_VALUE;
            }
            sources.add(source);