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>
This commit is contained in:
parent
9adbaad318
commit
0ca6db4f3b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user