commit | 215545be9a8133a196633af8400616ca822080fb | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Jul 25 10:06:30 2018 -0700 |
committer | George Burgess IV <gbiv@google.com> | Wed Jul 25 10:52:46 2018 -0700 |
tree | 08b5d26e040f72e037cfb569a5d972e9da826ec2 | |
parent | 69b9593594de8b2836ca3e6a7881b2268e9cb56d [diff] |
Fix a memory leak `if (index != 1)` below, we'd leak this memory. Caught by the static analyzer: frameworks/av/media/libmedia/MediaProfiles.cpp:573:21: warning: Potential leak of memory pointed to by 'profile' [clang-analyzer-cplusplus.NewDeleteLeaks] Bug: None Test: Ran the analyzer again. Change-Id: I3a8641358294a2d405cdf4d00fb1af86d893f9dc