Module: libav
Branch: master
Commit: fe277b16f0861a327e1f6c00c0dbb8b00806d60d

Author:    Ronald S. Bultje <[email protected]>
Committer: Ronald S. Bultje <[email protected]>
Date:      Tue Jul  5 18:10:48 2011 -0700

eval: fix memleak.

---

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

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 4d55f42..9bc40c1 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -489,6 +489,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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to