From: Michael Niedermayer Date: Thu, 23 Sep 2004 09:42:25 +0000 (+0000) Subject: segfault fix by (Kostya ) X-Git-Tag: v0.5~14689 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b43b426a8bc11da50db36e4797142da17f75d86f;p=platform%2Fupstream%2Flibav.git segfault fix by (Kostya ) Originally committed as revision 3497 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/lcl.c b/libavcodec/lcl.c index 9a8591a..46e835a 100644 --- a/libavcodec/lcl.c +++ b/libavcodec/lcl.c @@ -843,7 +843,7 @@ static int encode_end(AVCodecContext *avctx) LclContext *c = avctx->priv_data; av_freep(&avctx->extradata); - av_freep(c->comp_buf); + av_freep(&c->comp_buf); #ifdef CONFIG_ZLIB deflateEnd(&(c->zstream)); #endif