mips: fix memory leaks in board initialization

They are not a big deal, but they upset asan.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
stable-4.2
Paolo Bonzini 2019-10-01 15:36:25 +02:00
parent 266a880e31
commit 0287d89f3e
2 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@ void cpu_mips_irq_init_cpu(MIPSCPU *cpu)
for (i = 0; i < 8; i++) {
env->irq[i] = qi[i];
}
g_free(qi);
}
void cpu_mips_soft_irq(CPUMIPSState *env, int irq, int level)

View File

@ -362,6 +362,8 @@ static void mips_jazz_init(MachineState *machine,
/* LED indicator */
sysbus_create_simple("jazz-led", 0x8000f000, NULL);
g_free(dmas);
}
static