]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ahci: free irqs array
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 14 Jul 2016 16:03:40 +0000 (18:03 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Aug 2016 19:25:31 +0000 (14:25 -0500)
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 <marcandre.lureau@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
(cherry picked from commit 9d324b0e67c2b570df389c1361f591b95a4e4278)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/ahci.c

index 7c1682a86bb97902ce8d00f75b8e49a9b390c94f..a1e651635af25c2ac170d5b5ba52a17363117086 100644 (file)
@@ -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)