commit | f438bdce5060da09829b781a5b56f4a5517015ce | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Wed Jun 07 13:39:40 2017 -0700 |
committer | Marco Nelissen <marcone@google.com> | Wed Jun 07 13:39:40 2017 -0700 |
tree | eb3386a7d0398286585c6293cedd3b8e1641bcd3 | |
parent | 5a6046f0b75c245e34a8feb9b66b536c0f1dd671 [diff] |
Fix tiny memory leak Bug: 36103283 Change-Id: Ib33905fc64b997da80b4b26346db7c531ff8bb8e
diff --git a/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/MPEG4Extractor.cpp index 02be033..71519d2 100644 --- a/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/MPEG4Extractor.cpp
@@ -3005,6 +3005,8 @@ // smallest possible valid UTF-16 string w BOM: 0xfe 0xff 0x00 0x00 if (size < 6) { + delete[] buffer; + buffer = NULL; return ERROR_MALFORMED; }