Remove double-free

This was previously released at uc_close ../uc.c:286

    if (uc->release)
        uc->release(uc->tcg_ctx);

Which effectively does:

    object_unref(uc, OBJECT(uc->root));
This commit is contained in:
Zach Riggle 2016-04-20 15:34:55 -07:00
parent 8932463f9d
commit 9f94191a64
1 changed files with 0 additions and 3 deletions

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;