diff options
Diffstat (limited to 'libavutil/eval.c')
-rw-r--r-- | libavutil/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c index fa2999b84c..c7b25de5fc 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -499,6 +499,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; |