Revision 7267c094 hw/usb-ehci.c

b/hw/usb-ehci.c
652 652
{
653 653
    EHCIQueue *q;
654 654

  
655
    q = qemu_mallocz(sizeof(*q));
655
    q = g_malloc0(sizeof(*q));
656 656
    q->ehci = ehci;
657 657
    q->async_schedule = async;
658 658
    QTAILQ_INSERT_HEAD(&ehci->queues, q, next);
......
667 667
        usb_cancel_packet(&q->packet);
668 668
    }
669 669
    QTAILQ_REMOVE(&q->ehci->queues, q, next);
670
    qemu_free(q);
670
    g_free(q);
671 671
}
672 672

  
673 673
static EHCIQueue *ehci_find_queue_by_qh(EHCIState *ehci, uint32_t addr)

Also available in: Unified diff