From 9a7256e8e07a47bc35da5e8ad5854fa18bdcffca Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 23 Nov 2012 18:48:10 +0100 Subject: [PATCH] ffprobe: free dictionary in opt_show_entries() Fix memleak. --- ffprobe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffprobe.c b/ffprobe.c index f7374b3877..84dfa19643 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)