[librsvg/librsvg-2.40] test-utils.c: Fix a string leak
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.40] test-utils.c: Fix a string leak
- Date: Wed, 4 Oct 2017 13:01:34 +0000 (UTC)
commit aaee907f2e7b1c102ce06716c178795c309c241c
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]