diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 93033dc8eb..098990bf45 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -132,6 +132,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind if (args) av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args); av_log(log_ctx, AV_LOG_ERROR, "\n"); + avfilter_free(*filt_ctx); } av_free(tmp_args);