[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/7] usb: Fix iovec memleak on combined-packet free
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 7/7] usb: Fix iovec memleak on combined-packet free |
Date: |
Thu, 19 Sep 2013 11:34:58 +0200 |
From: Hans de Goede <address@hidden>
Signed-off-by: Hans de Goede <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/combined-packet.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/usb/combined-packet.c b/hw/usb/combined-packet.c
index 13f6602..ad77705 100644
--- a/hw/usb/combined-packet.c
+++ b/hw/usb/combined-packet.c
@@ -39,6 +39,7 @@ static void usb_combined_packet_remove(USBCombinedPacket
*combined,
p->combined = NULL;
QTAILQ_REMOVE(&combined->packets, p, combined_entry);
if (QTAILQ_EMPTY(&combined->packets)) {
+ qemu_iovec_destroy(&combined->iov);
g_free(combined);
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 6/7] usb: Also reset max_packet_size on ep_reset, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 2/7] xhci: Fix number of streams allocated when using streams, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 3/7] xhci: Init a transfers xhci, slotid and epid member on epctx alloc, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 5/7] xhci: Fix memory leak on xhci_disable_ep, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 4/7] xhci: Add xhci_epid_to_usbep helper function, Gerd Hoffmann, 2013/09/19
- [Qemu-devel] [PATCH 7/7] usb: Fix iovec memleak on combined-packet free,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 1/7] usb: remove old usb-host code, Gerd Hoffmann, 2013/09/19