[FFmpeg-cvslog] avfilter/graphparser: Directly free filter memory if initialization fails
Diego Biurrun
git at videolan.org
Thu Nov 7 23:38:00 CET 2013
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Nov 6 22:06:15 2013 +0100| [cffecc0e7ebd642afaa1fb9f56fab1fcc283293c] | committer: Diego Biurrun
avfilter/graphparser: Directly free filter memory if initialization fails
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cffecc0e7ebd642afaa1fb9f56fab1fcc283293c
---
libavfilter/graphparser.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 00764b6..e20dd62 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;
}
More information about the ffmpeg-cvslog
mailing list