From: Marc-André Lureau Date: Thu, 14 Jul 2016 16:03:40 +0000 (+0200) Subject: ahci: free irqs array X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9d324b0e67c2b570df389c1361f591b95a4e4278;p=qemu.git ahci: free irqs array Each irq is referenced by the IDEBus in ide_init2(), thus we can free the no longer used array. Signed-off-by: Marc-André Lureau Reviewed-by: John Snow Acked-by: John Snow --- diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index bcb9ff9e1b..6defeed81c 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1478,6 +1478,7 @@ void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports) ad->port.dma->ops = &ahci_dma_ops; ide_register_restart_cb(&ad->port); } + g_free(irqs); } void ahci_uninit(AHCIState *s)