diff options
author | Marc-André Lureau | 2016-07-14 18:03:40 +0200 |
---|---|---|
committer | Marc-André Lureau | 2016-08-07 22:00:20 +0200 |
commit | 9d324b0e67c2b570df389c1361f591b95a4e4278 (patch) | |
tree | 7205da3847d89fc7bd70c45b26801d224f842191 /hw | |
parent | char: free MuxDriver when closing (diff) | |
download | qemu-9d324b0e67c2b570df389c1361f591b95a4e4278.tar.gz qemu-9d324b0e67c2b570df389c1361f591b95a4e4278.tar.xz qemu-9d324b0e67c2b570df389c1361f591b95a4e4278.zip |
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 <marcandre.lureau@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |