mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 15:12:07 -06:00
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
2 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,7 @@ void cpu_mips_irq_init_cpu(MIPSCPU *cpu)
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
env->irq[i] = qi[i];
|
env->irq[i] = qi[i];
|
||||||
}
|
}
|
||||||
|
g_free(qi);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cpu_mips_soft_irq(CPUMIPSState *env, int irq, int level)
|
void cpu_mips_soft_irq(CPUMIPSState *env, int irq, int level)
|
||||||
|
|
|
@ -362,6 +362,8 @@ static void mips_jazz_init(MachineState *machine,
|
||||||
|
|
||||||
/* LED indicator */
|
/* LED indicator */
|
||||||
sysbus_create_simple("jazz-led", 0x8000f000, NULL);
|
sysbus_create_simple("jazz-led", 0x8000f000, NULL);
|
||||||
|
|
||||||
|
g_free(dmas);
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue