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



commit 2ba0630d1aa310089d247da7d7185bc3b2afc8c9
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]