Browse Source

eval: fix memleak.

tags/n0.9
Ronald S. Bultje 14 years ago
parent
commit
fe277b16f0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavutil/eval.c

+ 1
- 0
libavutil/eval.c View File

@@ -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;


Loading…
Cancel
Save