[glib: 7/10] tests: Fix a memory leak in the fileutils test




commit a389227fb9a5d0f37e8c470c5a908c5f7bacae76
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Feb 18 02:33:57 2022 +0000

    tests: Fix a memory leak in the fileutils test
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/tests/fileutils.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index 7083cf204..75cac3839 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -1169,6 +1169,7 @@ test_file_test (void)
 
   /* Cleaning */
   g_remove (name);
+  g_free (name);
 }
 
 static void


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