summaryrefslogtreecommitdiff
path: root/test/cairo-test-runner.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2014-11-20 17:22:30 +0100
committerBryce Harrington <bryce@osg.samsung.com>2014-12-06 17:38:02 -0800
commit4a225fca5f121c31ddaa0af80a13bf95a7f21a5b (patch)
tree0b9160fa57246a49aad1a97f9e0034bc8ddfbdef /test/cairo-test-runner.c
parent9806f437b42056124314976f35a2d32cefa508a8 (diff)
downloadcairo-4a225fca5f121c31ddaa0af80a13bf95a7f21a5b.tar.gz
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>
Diffstat (limited to 'test/cairo-test-runner.c')
-rw-r--r--test/cairo-test-runner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index 3fb3ae5c0..f9e7d4712 100644
--- a/test/cairo-test-runner.c
+++ b/test/cairo-test-runner.c
@@ -1096,6 +1096,7 @@ main (int argc, char **argv)
_runner_print_results (&runner);
+ _list_free (tests);
free (target_status);
return _runner_fini (&runner);
}