[FFmpeg-cvslog] ffprobe: free dictionary in opt_show_entries()
Stefano Sabatini
git at videolan.org
Fri Nov 23 18:50:39 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Nov 23 18:48:10 2012 +0100| [9a7256e8e07a47bc35da5e8ad5854fa18bdcffca] | committer: Stefano Sabatini
ffprobe: free dictionary in opt_show_entries()
Fix memleak.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a7256e8e07a47bc35da5e8ad5854fa18bdcffca
---
ffprobe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffprobe.c b/ffprobe.c
index f7374b3..84dfa19 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2043,6 +2043,7 @@ static int opt_show_entries(void *optctx, const char *opt, const char *arg)
av_log(NULL, AV_LOG_ERROR, "No match for section '%s'\n", section_name);
ret = AVERROR(EINVAL);
}
+ av_dict_free(&entries);
av_free(section_name);
if (ret <= 0)
More information about the ffmpeg-cvslog
mailing list