This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
eval: fix memleak.
(cherry picked from commit
fe277b16f0
) Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n0.8.4
Ronald S. Bultje
Anton Khirnov
14 years ago
parent
266ec41f77
commit
2649439bbd
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
libavutil/eval.c
+ 1
- 0
libavutil/eval.c
View File
@@ -488,6 +488,7 @@ int av_expr_parse(AVExpr **expr, const char *s,
if ((ret = parse_expr(&e, &p)) < 0)
if ((ret = parse_expr(&e, &p)) < 0)
goto end;
goto end;
if (*p.s) {
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);
av_log(&p, AV_LOG_ERROR, "Invalid chars '%s' at the end of expression '%s'\n", p.s, s0);
ret = AVERROR(EINVAL);
ret = AVERROR(EINVAL);
goto end;
goto end;
Write
Preview
Loading…
Cancel
Save