[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.7 4/9] ahci: free irqs array
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PULL for-2.7 4/9] ahci: free irqs array |
Date: |
Mon, 8 Aug 2016 00:05:56 +0400 |
From: Marc-André Lureau <address@hidden>
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 <address@hidden>
Reviewed-by: John Snow <address@hidden>
Acked-by: John Snow <address@hidden>
---
hw/ide/ahci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index bcb9ff9..6defeed 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)
--
2.9.0
- [Qemu-devel] [PULL for-2.7 0/9] Leak fixes for 2.7, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 1/9] numa: do not leak NumaOptions, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 2/9] char: free the tcp connection data when closing, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 3/9] char: free MuxDriver when closing, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 4/9] ahci: free irqs array,
marcandre . lureau <=
- [Qemu-devel] [PULL for-2.7 5/9] qjson: free str, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 6/9] virtio-input: free config list, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 7/9] usb: free USBDevice.strings, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 8/9] usb: free leaking path, marcandre . lureau, 2016/08/07
- [Qemu-devel] [PULL for-2.7 9/9] ahci: fix sglist leak on retry, marcandre . lureau, 2016/08/07
- Re: [Qemu-devel] [PULL for-2.7 0/9] Leak fixes for 2.7, Peter Maydell, 2016/08/08