segfault fix by (Kostya <cannonball at bw-team dot com>)
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Sep 2004 09:42:25 +0000 (09:42 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Sep 2004 09:42:25 +0000 (09:42 +0000)
Originally committed as revision 3497 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/lcl.c

index 9a8591a..46e835a 100644 (file)
@@ -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