avcodec/bink: Reorder operations in init to avoid memleak on error
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jun 2019 19:52:24 +0000 (21:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit6e26b1b0b18df60f77f6c0878438783a8b851f6f
tree662db11889163d48baf43225dfb2c3764d14e5b1
parentf487aa964b4e4fcdea8ae2e899d31494ede8c3cd
avcodec/bink: Reorder operations in init to avoid memleak on error

Fixes: Direct leak of 536 byte(s) in 1 object(s)
Fixes: 15266/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-5629530426834944

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2603f25d326476a83f5d093b522590b05b6e703b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bink.c