diff --git a/qemu/unicorn_common.h b/qemu/unicorn_common.h index 84bbb9f1..5176430e 100644 --- a/qemu/unicorn_common.h +++ b/qemu/unicorn_common.h @@ -58,9 +58,9 @@ static void release_common(void *t) // these function is not available outside qemu // so we keep them here instead of outside uc_close. + memory_free(s->uc); address_space_destroy(&s->uc->address_space_memory); address_space_destroy(&s->uc->address_space_io); - memory_free(s->uc); /* clean up uc->l1_map. */ tb_cleanup(s->uc); /* clean up tcg_ctx->code_gen_buffer. */