avfilter/graphparser: Directly free filter memory if initialization fails
This commit is contained in:
@ -130,6 +130,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
|
|||||||
if (args)
|
if (args)
|
||||||
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
|
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
|
||||||
av_log(log_ctx, AV_LOG_ERROR, "\n");
|
av_log(log_ctx, AV_LOG_ERROR, "\n");
|
||||||
|
avfilter_free(*filt_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user