diff options
author | James Almer <jamrial@gmail.com> | 2025-01-03 14:10:54 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-01-04 20:45:10 -0300 |
commit | cd174c7c7c5849727f45b7d7d263810ddf9b9cba (patch) | |
tree | 9ff0fedde1e5a5f2c092bba8b9479c7132812e47 | |
parent | e262411f329d63bcd36fbf4ac666629530ffec90 (diff) | |
download | ffmpeg-cd174c7c7c5849727f45b7d7d263810ddf9b9cba.tar.gz |
avfilter/aeval: don't leak the strdup'd expression string
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavfilter/aeval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c index 45813dada6..37447b47e8 100644 --- a/libavfilter/aeval.c +++ b/libavfilter/aeval.c @@ -116,7 +116,8 @@ static int parse_channel_expressions(AVFilterContext *ctx, if (!eval->exprs || !*eval->exprs) { av_log(ctx, AV_LOG_ERROR, "Channels expressions list is empty\n"); - return AVERROR(EINVAL); + ret = AVERROR(EINVAL); + goto end; } if (!strcmp(ctx->filter->name, "aeval")) { |