eval: fix memleak.

pull/2/head
Ronald S. Bultje 14 years ago
parent a625e13208
commit fe277b16f0
  1. 1
      libavutil/eval.c

@ -489,6 +489,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;

Loading…
Cancel
Save