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

Commit e16a2029 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

Change-Id: I7d261ceb8cfce3b3f56ed907e1e32d70e7a40d45
parents c12499d5 fa81ba87
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);