[wasm] Fix mono_vfree ().
authorZoltan Varga <vargaz@gmail.com>
Thu, 30 Jan 2020 14:36:12 +0000 (09:36 -0500)
committerZoltan Varga <vargaz@gmail.com>
Thu, 30 Jan 2020 14:36:12 +0000 (09:36 -0500)
src/mono/mono/utils/mono-mmap-wasm.c

index c8ff1f8..4af6764 100644 (file)
@@ -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);