aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-07-05 18:10:48 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2011-07-05 18:18:10 -0700
commitfe277b16f0861a327e1f6c00c0dbb8b00806d60d (patch)
treeb518a824e09fe9bc66d254aca8e880b27c1c4c1d /libavutil
parenta625e13208ad0ebf1554aa73c9bf41452520f176 (diff)
downloadffmpeg-fe277b16f0861a327e1f6c00c0dbb8b00806d60d.tar.gz
eval: fix memleak.
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 4d55f42664..9bc40c1edc 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;