[glib: 1/2] testfilemonitor: Fix a trivial leak in the test



commit b7e84fb903690278bda5db90bd8206587c711ad0
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Oct 16 11:33:58 2019 +0100

    testfilemonitor: Fix a trivial leak in the test
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #1910

 gio/tests/testfilemonitor.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gio/tests/testfilemonitor.c b/gio/tests/testfilemonitor.c
index 605795890..b74dc2b71 100644
--- a/gio/tests/testfilemonitor.c
+++ b/gio/tests/testfilemonitor.c
@@ -27,6 +27,8 @@ setup (Fixture       *fixture,
   fixture->tmp_dir = g_file_new_for_path (path);
 
   g_test_message ("Using temporary directory: %s", path);
+
+  g_free (path);
 }
 
 static void


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