diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index d0c678966f..278530ed27 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -156,13 +156,9 @@ static void parse_link_name(const char **buf, char **name) if(*(*buf)++ != ']') { av_log(&log_ctx, AV_LOG_ERROR, "Mismatched '[' found in the following: \"%s\".\n", start); - goto fail; + fail: + av_freep(name); } - - return; - - fail: - av_freep(name); } /**