Commit 9a7256e8 authored by Stefano Sabatini's avatar Stefano Sabatini

ffprobe: free dictionary in opt_show_entries()

Fix memleak.
parent a8ebbf87
...@@ -2043,6 +2043,7 @@ static int opt_show_entries(void *optctx, const char *opt, const char *arg) ...@@ -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); av_log(NULL, AV_LOG_ERROR, "No match for section '%s'\n", section_name);
ret = AVERROR(EINVAL); ret = AVERROR(EINVAL);
} }
av_dict_free(&entries);
av_free(section_name); av_free(section_name);
if (ret <= 0) if (ret <= 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment