diff options
author | James Zern <jzern@google.com> | 2011-02-04 17:58:03 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-06 20:31:45 +0100 |
commit | ba3517aa6f573d280d80866e776885be7f01de77 (patch) | |
tree | ffc4ac651d9b91b07813cb38e48ab62c1e4525f5 /cmdutils.c | |
parent | fd0ae17aafd7adb7619a02c6ec6835aa0ccbfea4 (diff) | |
download | ffmpeg-ba3517aa6f573d280d80866e776885be7f01de77.tar.gz |
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 3a6a9cdf5b8e4c4514e483484ef1f57b07ee16f2)
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 58fe85cfda..99e4c38af1 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -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) |