aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp6.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-03-03 17:24:32 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-03-03 17:24:32 +0000
commit0a41faa9a77dc83d8d933e99f1ba902ecd146e79 (patch)
tree0e0b15179b6f3b6686789f58049878b58912549a /libavcodec/vp6.c
parentd7f5e520bf18cfe0f288bee6c1004b715c32365e (diff)
downloadffmpeg-0a41faa9a77dc83d8d933e99f1ba902ecd146e79.tar.gz
Plug some memory leaks in the VP6 decoder
Originally committed as revision 22172 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r--libavcodec/vp6.c1
1 files changed, 1 insertions, 0 deletions
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);