--- cmdutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmdutils.c b/cmdutils.c index 6576eba..4462858 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -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); + av_freep(dst); *(char **)dst = str; } else if (po->flags & OPT_BOOL) { *(int *)dst = bool_val; -- 1.7.10.4
_______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel