avcodec/wmaprodec: Fix cleanup on error
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Oct 2019 08:19:42 +0000 (10:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Oct 2019 12:34:20 +0000 (14:34 +0200)
commita5d29812ec364ad4b83b5c2dba281f1b559a518b
treec4f8ec01c4a167afe21868afbdb2e88e86129f5b
parent5de19160a3c0dedb3cefd00e863a8d8f74ca2ad0
avcodec/wmaprodec: Fix cleanup on error

Fixes: memleaks
Fixes: 18023/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XMA2_fuzzer-5642535011090432

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wmaprodec.c