mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 17:38:12 +00:00
Free uc->mapped_blocks in uc_close
This commit is contained in:
parent
9023e77201
commit
5d8d251085
1 changed files with 2 additions and 0 deletions
2
uc.c
2
uc.c
|
@ -283,6 +283,8 @@ uc_err uc_close(uch *handle)
|
|||
uc->root->free(uc->root);
|
||||
|
||||
free(uc->hook_callbacks);
|
||||
|
||||
free(uc->memory_map);
|
||||
|
||||
// finally, free uc itself.
|
||||
memset(uc, 0, sizeof(*uc));
|
||||
|
|
Loading…
Reference in a new issue