mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt, metux IT consult
parent
e579e951e1
commit
8ec79aeefc
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user