diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-11-06 22:06:15 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-06 22:06:15 +0100 |
commit | cffecc0e7ebd642afaa1fb9f56fab1fcc283293c (patch) | |
tree | 7264964649af2b95d2627ee75354d587880e92d7 /libavfilter/graphparser.c | |
parent | 92352a94c1658eb0b246b984a569b310816e759f (diff) | |
download | ffmpeg-cffecc0e7ebd642afaa1fb9f56fab1fcc283293c.tar.gz |
avfilter/graphparser: Directly free filter memory if initialization fails
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r-- | libavfilter/graphparser.c | 1 |
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; } |