From 8ec79aeefc1a1fb2fcdd96df10965e72b7507cbf Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 31 Mar 2026 16:48:45 -0700 Subject: [PATCH] tests: plug leak of results in compute_expected_damage() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported in #1817: xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:68:43: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’ Fixes: 89901e14d ("test: Add the start of a testsuite for damage.") Signed-off-by: Alan Coopersmith Part-of: --- test/damage/primitives.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/damage/primitives.c b/test/damage/primitives.c index 810fc1340..9318a9ab8 100644 --- a/test/damage/primitives.c +++ b/test/damage/primitives.c @@ -106,6 +106,7 @@ compute_expected_damage(struct test_setup *setup) /* Make sure that the testcases actually render something! */ assert(any_modified_pixels); + free(results); } /**