mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
266a880e31
commit
0287d89f3e
|
@ -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)
|
||||
|
|
|
@ -362,6 +362,8 @@ static void mips_jazz_init(MachineState *machine,
|
|||
|
||||
/* LED indicator */
|
||||
sysbus_create_simple("jazz-led", 0x8000f000, NULL);
|
||||
|
||||
g_free(dmas);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
Loading…
Reference in New Issue