Skip to content

Commit

Permalink
[wasm] Fix mono_vfree ().
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Jan 30, 2020
1 parent e2325f3 commit 1af29a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/utils/mono-mmap-wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mono_vfree (void *addr, size_t length, MonoMemAccountType type)
res = munmap (info->addr, info->size);
END_CRITICAL_SECTION;
g_free (info);
g_hash_table_remove (valloc_hash, info);
g_hash_table_remove (valloc_hash, addr);
} else {
BEGIN_CRITICAL_SECTION;
res = munmap (addr, length);
Expand Down

0 comments on commit 1af29a5

Please sign in to comment.