diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-18 14:05:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-18 14:05:57 +0200 |
commit | 9a6503f496ae496dd6b1f54fd5752d48435361b0 (patch) | |
tree | f96fbdfcaf9af11976ff920566ef2e5cdc14f0a6 /libavcodec | |
parent | c557718bea35d39fc7e07a1d9d7cc6c7910643b8 (diff) | |
download | ffmpeg-9a6503f496ae496dd6b1f54fd5752d48435361b0.tar.gz |
avcodec/iff: Cleanup on init failure
Fixes: memleak
Fixes: 2272/clusterfuzz-testcase-minimized-5059103858622464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/iff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/iff.c b/libavcodec/iff.c index 075ada6ddd..33cf2e3a94 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -1878,6 +1878,7 @@ AVCodec ff_iff_ilbm_decoder = { .init = decode_init, .close = decode_end, .decode = decode_frame, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .capabilities = AV_CODEC_CAP_DR1, }; #endif |