diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-01 15:36:25 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-04 18:49:17 +0200 |
commit | 0287d89f3e3ef11b71e229b1928f1b9b0634a58a (patch) | |
tree | e93da1a3e536175b7872fe81a4cd942b082a6302 /hw/mips/mips_int.c | |
parent | 266a880e31d58539a1c7f0177690a047f5016505 (diff) |
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>
Diffstat (limited to 'hw/mips/mips_int.c')
-rw-r--r-- | hw/mips/mips_int.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c index 5ebc9618a7..863ed45659 100644 --- a/hw/mips/mips_int.c +++ b/hw/mips/mips_int.c @@ -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) |