From 6fabf305373b136f7d7428d7c8b573580d5924fe Mon Sep 17 00:00:00 2001 From: lazymio Date: Wed, 5 Jan 2022 19:12:36 +0100 Subject: [PATCH] Fix a invalid memory access Note: This probably addresses the ramdom failed CI on mingw64 --- qemu/unicorn_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */