[glib: 7/9] glib/tests/spawn-path-search: Fix memory leaks
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 7/9] glib/tests/spawn-path-search: Fix memory leaks
- Date: Mon, 26 Jul 2021 10:06:09 +0000 (UTC)
commit 5e356d90b203aad1987556fb14a035201ff1d67f
Author: GOUJON Évan <goujon evan gmail com>
Date: Thu Jul 22 16:45:08 2021 +0200
glib/tests/spawn-path-search: Fix memory leaks
glib/tests/spawn-path-search.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/glib/tests/spawn-path-search.c b/glib/tests/spawn-path-search.c
index f4278f3e0..2a8911139 100644
--- a/glib/tests/spawn-path-search.c
+++ b/glib/tests/spawn-path-search.c
@@ -389,6 +389,8 @@ test_search_path_heap_allocation (void)
long_dir = g_test_build_filename (G_TEST_BUILT, "path-test-subdir", placeholder, NULL);
long_path = g_strjoin (G_SEARCHPATH_SEPARATOR_S, subdir, long_dir, NULL);
envp = g_environ_setenv (envp, "PATH", long_path, TRUE);
+ g_free (long_path);
+ g_free (long_dir);
g_ptr_array_add (argv,
g_test_build_filename (G_TEST_BUILT, "spawn-path-search-helper", NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]