Commit 0ca6db4f authored by Hans de Goede's avatar Hans de Goede Committed by Gerd Hoffmann
Browse files

usb: Fix iovec memleak on combined-packet free

parent 9adbaad3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
    }
}