提交 ba3517aa 编写于 作者: J James Zern 提交者: Michael Niedermayer

cmdutils: fix opt_values leak

Add free to uninit_opts and relocate opt_names to same
Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 3a6a9cdf)
上级 fd0ae17a
......@@ -78,6 +78,8 @@ void uninit_opts(void)
#if CONFIG_SWSCALE
av_freep(&sws_opts);
#endif
av_freep(&opt_names);
av_freep(&opt_values);
}
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
......
......@@ -534,7 +534,6 @@ static int ffmpeg_exit(int ret)
fclose(vstats_file);
av_free(vstats_filename);
av_free(opt_names);
av_free(streamid_map);
av_free(input_codecs);
av_free(output_codecs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册