From: Bartosz Golaszewski Date: Sun, 4 Aug 2019 07:46:40 +0000 (+0200) Subject: tests: free the GList linking test cases once it's no longer needed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=90e4dba270ac06420d5df2938013e595f447b5b7;p=qemu-gpiodev%2Flibgpiod.git tests: free the GList linking test cases once it's no longer needed Once we registered all the test cases, the GList linking them is no longer used. We can free it before running the test suite. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c index 9afae72..21e5537 100644 --- a/tests/gpiod-test.c +++ b/tests/gpiod-test.c @@ -119,6 +119,7 @@ int main(gint argc, gchar **argv) check_kernel(); g_list_foreach(globals.tests, add_test_from_list, NULL); + g_list_free(globals.tests); return g_test_run(); }