From 9ceb2ac6a89246f2e686eb3ad3448fbaff5328f7 Mon Sep 17 00:00:00 2001 From: Zhengxu <zhengxu.maxw...@gmail.com> Date: Fri, 13 Jan 2017 10:33:05 +0800 Subject: [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx is not released.
Signed-off-by: ChaoX A Liu <chaox.a....@gmail.com> Signed-off-by: Huang, Zhengxu <zhengxu.maxw...@gmail.com> Signed-off-by: Andrew, Zhang <huazh...@gmail.com> --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index d5dfca7..cadec15 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -4127,6 +4127,7 @@ static void free_stream(AVStream **pst) FF_DISABLE_DEPRECATION_WARNINGS av_freep(&st->codec->extradata); av_freep(&st->codec->subtitle_header); + av_buffer_unref(&st->codec->hw_frames_ctx); av_freep(&st->codec); FF_ENABLE_DEPRECATION_WARNINGS #endif -- 1.8.3.1
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel