Skip to content

Commit

Permalink
[eglib]Fix memory leak in g_find_program_in_path(). #11615.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Baulig authored and marek-safar committed Jan 24, 2019
1 parent 9939c1a commit d4d4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/eglib/gpath.c
Expand Up @@ -230,7 +230,7 @@ g_find_program_in_path (const gchar *program)
#endif

g_return_val_if_fail (program != NULL, NULL);
x = p = g_strdup (g_getenv ("PATH"));
x = p = g_getenv ("PATH");

if (x == NULL || *x == '\0') {
curdir = g_get_current_dir ();
Expand Down

0 comments on commit d4d4fb7

Please sign in to comment.