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:
Paolo Bonzini 2019-10-01 15:36:23 +02:00
parent 100781a8cd
commit 67c1ea9940

View File

@ -273,6 +273,8 @@ static void mcf5208evb_init(MachineState *machine)
0xfc030000, pic + 36); 0xfc030000, pic + 36);
} }
g_free(pic);
/* 0xfc000000 SCM. */ /* 0xfc000000 SCM. */
/* 0xfc004000 XBS. */ /* 0xfc004000 XBS. */
/* 0xfc008000 FlexBus CS. */ /* 0xfc008000 FlexBus CS. */