avformat/mpc: deallocate frames array on errors
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jul 2019 21:11:50 +0000 (23:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 19:16:28 +0000 (21:16 +0200)
commit5fa0b18c95a0324a933101a727106e7cbf6597b6
treef4740947d1ee0b7fa04fb5e674f54edbd71bfe3b
parent8a03611020b95fed211a4fe93fc06798015698dc
avformat/mpc: deallocate frames array on errors

Fixes: memleak on error path
Fixes: 15984/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5679918412726272

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit da5039415c2bd625085d15e6c92e0b64eefddcbf)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpc.c