Skip to content

Commit

Permalink
usb: Fix iovec memleak on combined-packet free
Browse files Browse the repository at this point in the history
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
jwrdegoede authored and kraxel committed Sep 19, 2013
1 parent 9adbaad commit 0ca6db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/usb/combined-packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 0ca6db4

Please sign in to comment.