summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:05:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:05:26 +0100
commitec8e68c7633cd288c90e6e7057365d8c354661a4 (patch)
treea5484fbf0e55694e4c0c47e0c8bee4720b09fce9 /libavfilter/graphparser.c
parent7c02a77d250ff24514e029d931f7bc16b3810504 (diff)
parentcffecc0e7ebd642afaa1fb9f56fab1fcc283293c (diff)
downloadffmpeg-ec8e68c7633cd288c90e6e7057365d8c354661a4.tar.gz
Merge commit 'cffecc0e7ebd642afaa1fb9f56fab1fcc283293c'
* commit 'cffecc0e7ebd642afaa1fb9f56fab1fcc283293c': avfilter/graphparser: Directly free filter memory if initialization fails Conflicts: libavfilter/graphparser.c Merged-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 93033dc8eb..098990bf45 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -132,6 +132,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);
}
av_free(tmp_args);