Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-07-06 05:10:48 +0400
committerAnton Khirnov <anton@khirnov.net>2011-09-11 14:24:55 +0400
commit2649439bbdbf32af2bd07160c8a85ba55112af11 (patch)
tree6a4bc104366343af385235c775d9fec5b3c791db /libavutil
parent266ec41f77da6a44fe18e3774f08c9d4551137ac (diff)
eval: fix memleak.
(cherry picked from commit fe277b16f0861a327e1f6c00c0dbb8b00806d60d) Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c
index a3788210e3..8bcba3632d 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;