aboutsummaryrefslogtreecommitdiff
path: root/hw/m68k/mcf5208.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-10-01 15:36:23 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-04 18:49:16 +0200
commit67c1ea9940afd73ebc66987672617b6694ba1e4a (patch)
treea5b0369c77bf9889c4f9bb7a03981f7be62a5b49 /hw/m68k/mcf5208.c
parent100781a8cd61927d8442bd0b02dfc10c5bb89bcb (diff)
mcf5208: fix leak from qemu_allocate_irqs
The array returned by qemu_allocate_irqs is malloced, free it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/m68k/mcf5208.c')
-rw-r--r--hw/m68k/mcf5208.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c
index 012710d057..60c5802b4e 100644
--- a/hw/m68k/mcf5208.c
+++ b/hw/m68k/mcf5208.c
@@ -273,6 +273,8 @@ static void mcf5208evb_init(MachineState *machine)
0xfc030000, pic + 36);
}
+ g_free(pic);
+
/* 0xfc000000 SCM. */
/* 0xfc004000 XBS. */
/* 0xfc008000 FlexBus CS. */