From 0a41faa9a77dc83d8d933e99f1ba902ecd146e79 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Wed, 3 Mar 2010 17:24:32 +0000 Subject: Plug some memory leaks in the VP6 decoder Originally committed as revision 22172 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vp6.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/vp6.c') diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index de98e61e6e..8bb60ede27 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -227,6 +227,7 @@ static void vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[], nodes[map[2*i+1]].count = b + !b; } + free_vlc(vlc); /* then build the huffman tree accodring to probabilities */ ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp, FF_HUFFMAN_FLAG_HNODE_FIRST); -- cgit v1.2.3