avcodec/v4l2_m2m_dec: Fix memleak on ff_v4l2_m2m_codec_init() failure
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Jun 2019 14:44:46 +0000 (16:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Jun 2019 10:01:32 +0000 (12:01 +0200)
commite5f92f3fbadb29e54ac3ab82cd24d78e95bc286d
treedd6713986a66dc42e4c3daffc6345452f4007591
parent640e401aedb3c8b77bdbed51f799c97171e4c483
avcodec/v4l2_m2m_dec: Fix memleak on ff_v4l2_m2m_codec_init() failure

Fixes: 13579/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1_V4L2M2M_fuzzer-5753560726241280

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/v4l2_m2m_dec.c