libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 10:33:00 +0000 (11:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 10:33:00 +0000 (11:33 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libx264.c

index 5952a0d..4da0ee0 100644 (file)
@@ -305,7 +305,7 @@ static av_cold int X264_close(AVCodecContext *avctx)
     X264Context *x4 = avctx->priv_data;
 
     av_freep(&avctx->extradata);
-    av_free(x4->sei);
+    av_freep(&x4->sei);
 
     if (x4->enc)
         x264_encoder_close(x4->enc);