mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue