glib/tests/spawn-path-search: Fix memory leaks

This commit is contained in:
GOUJON Évan 2021-07-22 16:45:08 +02:00
parent dd69955e58
commit 5e356d90b2

View File

@ -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));