mirror of https://gitee.com/openkylin/qemu.git
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…
Reference in New Issue