aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-11-23 20:42:03 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-11-23 20:42:03 +0000
commit782f69e8a583168f5018529fbd0f6ee3903df81f (patch)
treef4d184fd91d974901cb653ca2cb61fd40560bf15 /libavcodec/xan.c
parent73d0e33102f2bd38ff4ef810c26c1dc39888bd0b (diff)
downloadffmpeg-782f69e8a583168f5018529fbd0f6ee3903df81f.tar.gz
Fix memleak: free palette data on close.
Originally committed as revision 25816 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index eda6a4679d..fbd383f39b 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -559,6 +559,7 @@ static av_cold int xan_decode_end(AVCodecContext *avctx)
av_freep(&s->buffer1);
av_freep(&s->buffer2);
+ av_freep(&s->palettes);
return 0;
}