mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-10 15:57:24 +00:00
Free uc->mapped_blocks in uc_close
This commit is contained in:
parent
9023e77201
commit
5d8d251085
2
uc.c
2
uc.c
|
@ -283,6 +283,8 @@ uc_err uc_close(uch *handle)
|
||||||
uc->root->free(uc->root);
|
uc->root->free(uc->root);
|
||||||
|
|
||||||
free(uc->hook_callbacks);
|
free(uc->hook_callbacks);
|
||||||
|
|
||||||
|
free(uc->memory_map);
|
||||||
|
|
||||||
// finally, free uc itself.
|
// finally, free uc itself.
|
||||||
memset(uc, 0, sizeof(*uc));
|
memset(uc, 0, sizeof(*uc));
|
||||||
|
|
Loading…
Reference in a new issue