[FFmpeg-cvslog] avfilter/aeval: don't leak the strdup'd expression string

James Almer git at videolan.org
Sun Jan 5 05:34:24 EET 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | 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 <jamrial at gmail.com>

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



More information about the ffmpeg-cvslog mailing list