mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 13:28:18 +00:00
fix a bug on releasing mapped_blocks in uc_close()
This commit is contained in:
parent
9e929ca2f3
commit
b6dd516977
1 changed files with 1 additions and 1 deletions
2
uc.c
2
uc.c
|
@ -284,7 +284,7 @@ uc_err uc_close(uch *handle)
|
||||||
|
|
||||||
free(uc->hook_callbacks);
|
free(uc->hook_callbacks);
|
||||||
|
|
||||||
free(uc->memory_map);
|
free(uc->mapped_blocks);
|
||||||
|
|
||||||
// finally, free uc itself.
|
// finally, free uc itself.
|
||||||
memset(uc, 0, sizeof(*uc));
|
memset(uc, 0, sizeof(*uc));
|
||||||
|
|
Loading…
Reference in a new issue