From 9f94191a6417e2ebeb2900533b876187420f68cd Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Wed, 20 Apr 2016 15:34:55 -0700 Subject: [PATCH] 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)); --- uc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/uc.c b/uc.c index 188affab..c8ba7741 100644 --- a/uc.c +++ b/uc.c @@ -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;