Fix mem leak.
authorRalf Terdic <contact@jswiff.com>
Mon, 13 Oct 2008 13:47:05 +0000 (13:47 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Mon, 13 Oct 2008 13:47:05 +0000 (13:47 +0000)
Patch by Ralf Terdic contact >AT< jswiff com

Originally committed as revision 15612 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libx264.c

index 4f7280b6d3981365051e90fe60186f156fdd1a6d..d82756b62f75b65d9bcfdf2ffdcd0f2d6959b6b3 100644 (file)
@@ -124,6 +124,8 @@ X264_close(AVCodecContext *avctx)
 {
     X264Context *x4 = avctx->priv_data;
 
+    av_freep(&avctx->extradata);
+
     if(x4->enc)
         x264_encoder_close(x4->enc);