commit | 0ca6db4f3b3df5c4e5285a48a7709bdced5068de | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Tue Sep 17 21:44:52 2013 +0200 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Thu Sep 19 11:28:40 2013 +0200 |
tree | 19449da9ecf77d7deab38373c8ad989fda53996f | |
parent | 9adbaad318cddd300c42dbbbc88991cdc9cecd99 [diff] [blame] |
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>
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 @@ p->combined = NULL; QTAILQ_REMOVE(&combined->packets, p, combined_entry); if (QTAILQ_EMPTY(&combined->packets)) { + qemu_iovec_destroy(&combined->iov); g_free(combined); } }