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
1 file changed