aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-11-06 22:06:15 +0100
committerDiego Biurrun <diego@biurrun.de>2013-11-06 22:06:15 +0100
commitcffecc0e7ebd642afaa1fb9f56fab1fcc283293c (patch)
tree7264964649af2b95d2627ee75354d587880e92d7
parent92352a94c1658eb0b246b984a569b310816e759f (diff)
downloadffmpeg-cffecc0e7ebd642afaa1fb9f56fab1fcc283293c.tar.gz
avfilter/graphparser: Directly free filter memory if initialization fails
-rw-r--r--libavfilter/graphparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 00764b68b6..e20dd626bc 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -130,6 +130,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
if (args)
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
av_log(log_ctx, AV_LOG_ERROR, "\n");
+ avfilter_free(*filt_ctx);
return ret;
}