projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a625e13
)
eval: fix memleak.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 6 Jul 2011 01:10:48 +0000
(18:10 -0700)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 6 Jul 2011 01:18:10 +0000
(18:18 -0700)
libavutil/eval.c
patch
|
blob
|
history
diff --git
a/libavutil/eval.c
b/libavutil/eval.c
index
4d55f42
..
9bc40c1
100644
(file)
--- 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;