[librsvg] test-utils.c: Fix a string leak



commit 66ee4b61dd84ca945f45272d5122318b70e74a1e
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Feb 17 10:29:47 2017 -0600

    test-utils.c: Fix a string leak

 tests/test-utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-utils.c b/tests/test-utils.c
index a216259..e7506b1 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -65,6 +65,8 @@ test_utils_add_test_for_all_files (const gchar   *prefix,
       test_path = g_strconcat (prefix, "/", relative_path, NULL);
       
       g_test_add_data_func_full (test_path, g_object_ref (file), test_func, g_object_unref);
+
+      g_free (test_path);
       return;
     }
 


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