[libgweather/benzea/pre-variant-backend-cleanups: 2/8] test: Fix small memory leak found by valgrind



commit e94f00e527681a596c76ef94bb393d05c7d6dac9
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Apr 27 15:35:58 2020 +0200

    test: Fix small memory leak found by valgrind

 libgweather/test_libgweather.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
index 18038ee1..fba947b3 100644
--- a/libgweather/test_libgweather.c
+++ b/libgweather/test_libgweather.c
@@ -448,8 +448,7 @@ set_gsettings (void)
        int result;
 
        /* Create the installed schemas directory */
-       tmpdir = g_strdup_printf ("libgweather-test-XXXXXX");
-       tmpdir = g_dir_make_tmp (tmpdir, NULL);
+       tmpdir = g_dir_make_tmp ("libgweather-test-XXXXXX", NULL);
        g_assert_nonnull (tmpdir);
 
        /* Copy the schemas files */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]