From 90e4dba270ac06420d5df2938013e595f447b5b7 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 4 Aug 2019 09:46:40 +0200 Subject: [PATCH] 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 --- tests/gpiod-test.c | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.30.2