Merge pull request #529 from zachriggle/issue_528

Remove double-free
This commit is contained in:
Nguyen Anh Quynh 2016-04-21 10:23:54 +08:00
commit bb80e699b2

3
uc.c
View file

@ -299,9 +299,6 @@ uc_err uc_close(uc_engine *uc)
free(uc->ram_list.dirty_memory[i]);
}
// TODO: remove uc->root (created with object_new())
uc->root->free(uc->root);
// free hooks and hook lists
for (i = 0; i < UC_HOOK_MAX; i++) {
cur = uc->hook[i].head;