aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/combined-packet.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-09-17 21:44:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-09-19 11:28:40 +0200
commit0ca6db4f3b3df5c4e5285a48a7709bdced5068de (patch)
tree19449da9ecf77d7deab38373c8ad989fda53996f /hw/usb/combined-packet.c
parent9adbaad318cddd300c42dbbbc88991cdc9cecd99 (diff)
downloadqemu-0ca6db4f3b3df5c4e5285a48a7709bdced5068de.zip
qemu-0ca6db4f3b3df5c4e5285a48a7709bdced5068de.tar.gz
qemu-0ca6db4f3b3df5c4e5285a48a7709bdced5068de.tar.bz2
usb: Fix iovec memleak on combined-packet free
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/combined-packet.c')
-rw-r--r--hw/usb/combined-packet.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}