From 782f69e8a583168f5018529fbd0f6ee3903df81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de> Date: Tue, 23 Nov 2010 20:42:03 +0000 Subject: [PATCH] Fix memleak: free palette data on close. Originally committed as revision 25816 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/xan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/xan.c b/libavcodec/xan.c index eda6a4679d9..fbd383f39b7 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; } -- GitLab