projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1371a36
)
ahci: free irqs array
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 14 Jul 2016 16:03:40 +0000
(18:03 +0200)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Sun, 7 Aug 2016 20:00:20 +0000
(
00:00
+0400)
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>
hw/ide/ahci.c
patch
|
blob
|
history
diff --git
a/hw/ide/ahci.c
b/hw/ide/ahci.c
index bcb9ff9e1b9b5dc2c7dd54c0b9b1bd7ee0aeb781..6defeed81c3a7b791af3becd14528134f2a6cb21 100644
(file)
--- 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)