This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit afe68aaaa69d696f00a44736fc4a76e199a20a13 Author: Niklas Haas <[email protected]> AuthorDate: Fri Oct 9 18:07:44 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Sat Oct 10 00:02:07 2026 +0000 swscale/tests/swscale: fix memleak on error Signed-off-by: Niklas Haas <[email protected]> --- libswscale/tests/swscale.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index b5c51b9b04..e639571506 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -597,13 +597,17 @@ static int run_test(enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, goto error; if (opts->align_src) { ret = av_frame_get_buffer(src, opts->align_src); - if (ret < 0) + if (ret < 0) { + av_frame_free(&src); goto error; + } } ret = checked_sws_scale_frame(sws_ref_src, src, ref); - if (ret < 0) + if (ret < 0) { + av_frame_free(&src); goto error; + } *psrc = src; } -- 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]
