avformat/icodec: Free ico->images on error paths
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 8 Jun 2019 08:48:41 +0000 (10:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit45d3ba9e5f57761a56f08f743f8ba9a137fca623
treee807a3da676a53da45214c68a4de8f5c54a186cc
parent0789b6295bbf343ef07bb6629ff19aaf1de49ed7
avformat/icodec: Free ico->images on error paths

Fixes: 15116/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5715173567889408
Fixes: memleak

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 54918b51161610a364de697b80acb9583eecf41b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/icodec.c