mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
eval: fix memleak.
This commit is contained in:
parent
a625e13208
commit
fe277b16f0
@ -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…
Reference in New Issue
Block a user