Commit 175e689c authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ec8e68c7
......@@ -133,6 +133,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
av_log(log_ctx, AV_LOG_ERROR, "\n");
avfilter_free(*filt_ctx);
*filt_ctx = NULL;
}
av_free(tmp_args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment