usb:xhci:fix memory leak in usb_xhci_exit
commitb53dd4495ced2432a0b652ea895e651d07336f7e
authorLi Qiang <liqiang6-s@360.cn>
Tue, 13 Sep 2016 10:20:03 +0000 (13 03:20 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Sep 2016 10:33:09 +0000 (13 12:33 +0200)
tree8966213953000dda32b284fccfd4b944c1addf71
parent6a71123469e0c9286354c6655440da51566c1763
usb:xhci:fix memory leak in usb_xhci_exit

If the xhci uses msix, it doesn't free the corresponding
memory, thus leading a memory leak. This patch avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 57d7d2e0.d4301c0a.d13e9.9a55@mx.google.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c