aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-01-03 14:10:54 -0300
committerJames Almer <jamrial@gmail.com>2025-01-04 20:45:10 -0300
commitcd174c7c7c5849727f45b7d7d263810ddf9b9cba (patch)
tree9ff0fedde1e5a5f2c092bba8b9479c7132812e47
parente262411f329d63bcd36fbf4ac666629530ffec90 (diff)
downloadffmpeg-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.c3
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")) {