mirror of
https://github.com/xemu-project/xemu.git
synced 2025-01-26 22:25:00 +00:00
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>
This commit is contained in:
parent
1371a36936
commit
9d324b0e67
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user