mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-05 23:11:03 +00:00
avfilter/graphparser: Directly free filter memory if initialization fails
This commit is contained in:
parent
92352a94c1
commit
cffecc0e7e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue