Commit a1bcc76e authored by Anton Khirnov's avatar Anton Khirnov

cmdutils: fix a memleak when specifying an option twice.

parent dc402854
......@@ -271,6 +271,7 @@ int parse_option(void *optctx, const char *opt, const char *arg,
if (po->flags & OPT_STRING) {
char *str;
str = av_strdup(arg);
*(char **)dst = str;
} else if (po->flags & OPT_BOOL) {
*(int *)dst = bool_val;
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