Fix a invalid memory access

Note: This probably addresses the ramdom failed CI on mingw64
This commit is contained in:
lazymio
2022-01-05 19:12:36 +01:00
parent c4b4189857
commit 6fabf30537

View File

@ -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. */