Skip to content

Commit

Permalink
Fixed missing g_free on hash table keys
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasReich committed Nov 9, 2018
1 parent 042dab8 commit 9b76ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mono/metadata/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,7 @@ mono_image_close_except_pools_all (MonoImage**images, int image_count)
static void
remove_cached_module(gpointer key, gpointer value, gpointer user_data)
{
g_free(key);
mono_dl_close((MonoDl*)value);
}

Expand Down
1 change: 1 addition & 0 deletions mono/metadata/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,7 @@ mono_loader_register_embedded_module (const char *name, MonoDl *module)
static void
remove_embedded_module (gpointer key, gpointer value, gpointer user_data)
{
g_free(key);
mono_dl_close((MonoDl*)value);
}

Expand Down

0 comments on commit 9b76ca5

Please sign in to comment.