avfilter/aeval: don't leak the strdup'd expression string

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2025-01-03 14:10:54 -03:00
parent e262411f32
commit cd174c7c7c

View file

@ -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")) {