Browse Source

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>
(cherry picked from commit 3a6a9cdf5b)
tags/n0.8
James Zern Michael Niedermayer 14 years ago
parent
commit
ba3517aa6f
2 changed files with 2 additions and 1 deletions
  1. +2
    -0
      cmdutils.c
  2. +0
    -1
      ffmpeg.c

+ 2
- 0
cmdutils.c View File

@@ -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)


+ 0
- 1
ffmpeg.c View File

@@ -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);


Loading…
Cancel
Save