aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:38:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:38:44 +0100
commit175e689cc5defe74d243ca37bcd74b37447d8716 (patch)
tree8afd5a56c570827eb41594c338356daf0f729404 /libavfilter/graphparser.c
parentec8e68c7633cd288c90e6e7057365d8c354661a4 (diff)
downloadffmpeg-175e689cc5defe74d243ca37bcd74b37447d8716.tar.gz
avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c1
1 files changed, 1 insertions, 0 deletions
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);