mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 04:20:10 +01:00
avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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, " with args '%s'", args);
|
||||||
av_log(log_ctx, AV_LOG_ERROR, "\n");
|
av_log(log_ctx, AV_LOG_ERROR, "\n");
|
||||||
avfilter_free(*filt_ctx);
|
avfilter_free(*filt_ctx);
|
||||||
|
*filt_ctx = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_free(tmp_args);
|
av_free(tmp_args);
|
||||||
|
|||||||
Reference in New Issue
Block a user