[FFmpeg-cvslog] eval: fix memleak.

Ronald S. Bultje git at videolan.org
Thu Sep 22 01:17:21 CEST 2011


ffmpeg | branch: release/0.8 | Ronald S. Bultje <rsbultje at gmail.com> | Tue Jul  5 18:10:48 2011 -0700| [2649439bbdbf32af2bd07160c8a85ba55112af11] | committer: Anton Khirnov

eval: fix memleak.
(cherry picked from commit fe277b16f0861a327e1f6c00c0dbb8b00806d60d)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2649439bbdbf32af2bd07160c8a85ba55112af11
---

 libavutil/eval.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index a378821..8bcba36 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -488,6 +488,7 @@ int av_expr_parse(AVExpr **expr, const char *s,
     if ((ret = parse_expr(&e, &p)) < 0)
         goto end;
     if (*p.s) {
+        av_expr_free(e);
         av_log(&p, AV_LOG_ERROR, "Invalid chars '%s' at the end of expression '%s'\n", p.s, s0);
         ret = AVERROR(EINVAL);
         goto end;



More information about the ffmpeg-cvslog mailing list