summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-06-20 23:58:47 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-06-26 21:29:35 +0200
commit55557c6124573eb715d6c6eeb1a472b99e91f9d5 (patch)
tree62aadc2c77c8e13e08109d788b03ac3be9542a5e /libavcodec/4xm.c
parent2db7a3bc4acdd293ed10b71e55f16a45ca28b629 (diff)
downloadffmpeg-55557c6124573eb715d6c6eeb1a472b99e91f9d5.tar.gz
avcodec/4xm: Fix vlc memleak
Fixes: memleak Fixes: 15297/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FOURXM_fuzzer-5746203548975104 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/4xm.c')
-rw-r--r--libavcodec/4xm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 2b88c899d0..89120aa8fb 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -697,6 +697,7 @@ static const uint8_t *read_huffman_tables(FourXContext *f,
len_tab[j] = len;
}
+ ff_free_vlc(&f->pre_vlc);
if (init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257, len_tab, 1, 1,
bits_tab, 4, 4, 0))
return NULL;