Skip to content
Snippets Groups Projects
Commit cffecc0e authored by Diego Biurrun's avatar Diego Biurrun
Browse files

avfilter/graphparser: Directly free filter memory if initialization fails

parent 92352a94
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment