From cd174c7c7c5849727f45b7d7d263810ddf9b9cba Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 3 Jan 2025 14:10:54 -0300 Subject: [PATCH] avfilter/aeval: don't leak the strdup'd expression string Signed-off-by: James Almer --- libavfilter/aeval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")) {