From 94c8340d93793adbaf87abbfc6f519b5b6935020 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 14 Jul 2016 18:03:40 +0200 Subject: [PATCH] ahci: free irqs array MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- hw/ide/ahci.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5