ffprobe: free dictionary in opt_show_entries()
authorStefano Sabatini <stefasab@gmail.com>
Fri, 23 Nov 2012 17:48:10 +0000 (18:48 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 23 Nov 2012 17:49:26 +0000 (18:49 +0100)
Fix memleak.

ffprobe.c

index f7374b3..84dfa19 100644 (file)
--- 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)