ffmpeg | branch: master | James Almer <[email protected]> | Fri Jan 3 14:10:54 2025 -0300| [cd174c7c7c5849727f45b7d7d263810ddf9b9cba] | committer: James Almer
avfilter/aeval: don't leak the strdup'd expression string Signed-off-by: James Almer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cd174c7c7c5849727f45b7d7d263810ddf9b9cba --- 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")) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
