Skip to content

Commit

Permalink
[runtime] Fix the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumpera committed Mar 30, 2015
1 parent bf271f1 commit 7d318ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mono/metadata/file-io.c
Expand Up @@ -379,9 +379,11 @@ get_filesystem_entries (MonoString *path,
g_free (utf8_path);
return names;
fail:
for (i = 0; i < names->len; i++)
g_free (g_ptr_array_index (names, i));
g_ptr_array_free (names, TRUE);
if (names) {
for (i = 0; i < names->len; i++)
g_free (g_ptr_array_index (names, i));
g_ptr_array_free (names, TRUE);
}
g_free (utf8_path);
return FALSE;
}
Expand Down

0 comments on commit 7d318ea

Please sign in to comment.