Skip to content

Commit

Permalink
[mono][interp] Fix leak in tiering
Browse files Browse the repository at this point in the history
We were looking with wrong key by mistake.
  • Loading branch information
BrzVlad committed Apr 11, 2024
1 parent 2b74a8a commit cf821eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/interp/tiering.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ patch_interp_data_items (InterpMethod *old_imethod, InterpMethod *new_imethod)
GSList *sites = g_hash_table_lookup (patch_sites_table, old_imethod);
g_slist_foreach (sites, patch_imethod_site, new_imethod);

g_hash_table_remove (patch_sites_table, sites);
g_hash_table_remove (patch_sites_table, old_imethod);
g_slist_free (sites);
}

Expand Down

0 comments on commit cf821eb

Please sign in to comment.