tests: plug leak of results in compute_expected_damage()

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 <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2167>
This commit is contained in:
Alan Coopersmith
2026-03-31 16:48:45 -07:00
committed by Enrico Weigelt, metux IT consult
parent e579e951e1
commit 8ec79aeefc

View File

@@ -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);
}
/**