This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 9305f9f2ffbb07e150f9808532bf81aa5435002f
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Sep 23 17:21:28 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Tue Sep 29 22:39:10 2026 +0200

    swscale/tests/colorspace: free the buffers
    
    They were never freed, which trips leak checking once the test runs
    under FATE.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libswscale/tests/colorspace.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libswscale/tests/colorspace.c b/libswscale/tests/colorspace.c
index d1eddc82bf..1db8d037ba 100644
--- a/libswscale/tests/colorspace.c
+++ b/libswscale/tests/colorspace.c
@@ -42,8 +42,11 @@ int main(int argc, char **argv)
     int failedNum      = 0;
     int passedNum      = 0;
 
-    if (!srcBuffer || !dstBuffer)
+    if (!srcBuffer || !dstBuffer) {
+        av_free(srcBuffer);
+        av_free(dstBuffer);
         return -1;
+    }
 
     av_log(NULL, AV_LOG_INFO, "memory corruption test ...\n");
     ff_sws_rgb2rgb_init();
@@ -167,5 +170,7 @@ int main(int argc, char **argv)
     av_log(NULL, AV_LOG_INFO,
            "\n%d converters passed, %d converters randomly overwrote memory\n",
            passedNum, failedNum);
+    av_free(srcBuffer);
+    av_free(dstBuffer);
     return failedNum;
 }

-- 
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]

Reply via email to