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>
This commit is contained in:
parent
100781a8cd
commit
67c1ea9940
@ -273,6 +273,8 @@ static void mcf5208evb_init(MachineState *machine)
|
||||
0xfc030000, pic + 36);
|
||||
}
|
||||
|
||||
g_free(pic);
|
||||
|
||||
/* 0xfc000000 SCM. */
|
||||
/* 0xfc004000 XBS. */
|
||||
/* 0xfc008000 FlexBus CS. */
|
||||
|
Loading…
Reference in New Issue
Block a user