mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
cmdutils: fix opt_values leak
Add free to uninit_opts and relocate opt_names to same Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
6b47495397
commit
3a6a9cdf5b
@ -78,6 +78,8 @@ void uninit_opts(void)
|
|||||||
#if CONFIG_SWSCALE
|
#if CONFIG_SWSCALE
|
||||||
av_freep(&sws_opts);
|
av_freep(&sws_opts);
|
||||||
#endif
|
#endif
|
||||||
|
av_freep(&opt_names);
|
||||||
|
av_freep(&opt_values);
|
||||||
}
|
}
|
||||||
|
|
||||||
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
|
void log_callback_help(void* ptr, int level, const char* fmt, va_list vl)
|
||||||
|
1
ffmpeg.c
1
ffmpeg.c
@ -524,7 +524,6 @@ static int ffmpeg_exit(int ret)
|
|||||||
fclose(vstats_file);
|
fclose(vstats_file);
|
||||||
av_free(vstats_filename);
|
av_free(vstats_filename);
|
||||||
|
|
||||||
av_free(opt_names);
|
|
||||||
av_free(streamid_map);
|
av_free(streamid_map);
|
||||||
av_free(input_codecs);
|
av_free(input_codecs);
|
||||||
av_free(output_codecs);
|
av_free(output_codecs);
|
||||||
|
Loading…
Reference in New Issue
Block a user