From: Michael Niedermayer Date: Thu, 17 Feb 2005 00:00:20 +0000 (+0000) Subject: memleak fix X-Git-Tag: v0.5~14215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2d57a34d0ae728b40310f847b9560f0a184e166;p=platform%2Fupstream%2Flibav.git memleak fix Originally committed as revision 3962 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 6cc9ca8..1094044 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -305,6 +305,8 @@ static int decode_end(AVCodecContext *avctx) { CamtasiaContext * const c = (CamtasiaContext *)avctx->priv_data; + av_freep(&c->decomp_buf); + if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic); #ifdef CONFIG_ZLIB