This commit is contained in:
Nguyen Anh Quynh 2016-01-10 23:34:36 +08:00
parent cd6c98f5df
commit a0aa26d6ee

View file

@ -26,9 +26,11 @@ void x86_release(void *ctx);
void x86_release(void *ctx)
{
release_common(ctx);
int i;
TCGContext *s = (TCGContext *) ctx;
release_common(ctx);
// arch specific
g_free(s->cpu_A0);
g_free(s->cpu_T[0]);
@ -40,7 +42,6 @@ void x86_release(void *ctx)
g_free(s->cpu_cc_src);
g_free(s->cpu_cc_src2);
int i;
for (i = 0; i < CPU_NB_REGS; ++i) {
g_free(s->cpu_regs[i]);
}