From 175e689cc5defe74d243ca37bcd74b37447d8716 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 7 Nov 2013 23:38:44 +0100 Subject: [PATCH] avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter() Signed-off-by: Michael Niedermayer --- libavfilter/graphparser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 098990bf45..7e25282d0d 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -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);