Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-18 13:33:00 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-18 13:33:00 +0300
commitade140eb733197b3c4cdc63485652169ed757d89 (patch)
tree6a23b204ee0fc5cf9df4c77e66c706fbf5ade97a /libavcodec/libx264.c
parent4243415741e335b92feb757d5514a2cdfbb63cc4 (diff)
libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c2
1 files changed, 1 insertions, 1 deletions
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);