diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-16 23:34:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-16 23:48:38 +0100 |
commit | 7ababb85f963c3354fb10000742c6857bb1198ed (patch) | |
tree | 706714b60034146dc3903cee912a6227a0c7ecd3 /libavcodec/snowenc.c | |
parent | 00672d2ce5135ccc165f327ad70aa9f4f6cfc0ec (diff) | |
download | ffmpeg-7ababb85f963c3354fb10000742c6857bb1198ed.tar.gz |
avcodec/snow: clear freed pointers
Avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index c790d9b04f..cbc89c985b 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1862,7 +1862,7 @@ static av_cold int encode_end(AVCodecContext *avctx) ff_snow_common_end(s); ff_rate_control_uninit(&s->m); av_frame_free(&s->input_picture); - av_free(avctx->stats_out); + av_freep(&avctx->stats_out); return 0; } |