This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f90f210d31cbc923eecf85240e490697065753cf Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 06:25:02 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avfilter/f_perms: free the input frame when it cannot be made writable or cloned Fixes: 1MIkYBeZ4sTX Fixes: memleak Memory leak Replicated through Modified FFmpeg with LSan Found during triage of the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765 --- libavfilter/f_perms.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c index 7c35ceb770..f9e86105ff 100644 --- a/libavfilter/f_perms.c +++ b/libavfilter/f_perms.c @@ -97,13 +97,17 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) in_perm == out_perm ? " (no-op)" : ""); if (in_perm == RO && out_perm == RW) { - if ((ret = ff_inlink_make_frame_writable(inlink, &frame)) < 0) + if ((ret = ff_inlink_make_frame_writable(inlink, &frame)) < 0) { + av_frame_free(&frame); return ret; + } out = frame; } else if (in_perm == RW && out_perm == RO) { out = av_frame_clone(frame); - if (!out) + if (!out) { + av_frame_free(&frame); return AVERROR(ENOMEM); + } } ret = ff_filter_frame(ctx->outputs[0], out); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
