From: Marc-André Lureau Date: Thu, 14 Jul 2016 16:03:40 +0000 (+0200) Subject: ahci: free irqs array X-Git-Tag: v2.6.1~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94c8340d93793adbaf87abbfc6f519b5b6935020;p=thirdparty%2Fqemu.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 (cherry picked from commit 9d324b0e67c2b570df389c1361f591b95a4e4278) Signed-off-by: Michael Roth --- diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 7c1682a86bb..a1e651635af 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1475,6 +1475,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)