mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
glib/tests/spawn-path-search: Fix memory leaks
This commit is contained in:
parent
dd69955e58
commit
5e356d90b2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user