mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
avcodec/snow: clear freed pointers
Avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user