From ade140eb733197b3c4cdc63485652169ed757d89 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 18 Nov 2014 11:33:00 +0100 Subject: [PATCH] libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavcodec/libx264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 5952a0df1e..4da0ee0d84 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -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);