mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
test: Free test list
When running the cairo-test-suite, valgrind reports each of the registered test as a leak, because they are _list_prepend()'ed, but the tests list is never _list_free()'d. Fixes the following valgrind error: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) cairo_boilerplate_xmalloc (cairo-boilerplate-system.c:47) cairo_test_register (cairo-test-runner.c:131) _cairo_test_runner_register_tests (cairo-test-constructors.c:1112) main (cairo-test-runner.c:714) Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
9806f437b4
commit
4a225fca5f
1 changed files with 1 additions and 0 deletions
|
|
@ -1096,6 +1096,7 @@ main (int argc, char **argv)
|
|||
|
||||
_runner_print_results (&runner);
|
||||
|
||||
_list_free (tests);
|
||||
free (target_status);
|
||||
return _runner_fini (&runner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue