Re: [Qemu-devel] [PATCH] usb: ehci: fix memory leak in ehci

2017-02-14 Thread Li Qiang
Ping... 2017-02-08 10:42 GMT+08:00 Li Qiang : > From: Li Qiang > > In usb_ehci_init function, it initializes 's->ipacket', but there > is no corresponding function to free this. As the ehci can be hotplug > and unplug, this will leak host memory leak. In order to make the > hierarchy clean, we s

[Qemu-devel] [PATCH] usb: ehci: fix memory leak in ehci

2017-02-07 Thread Li Qiang
From: Li Qiang In usb_ehci_init function, it initializes 's->ipacket', but there is no corresponding function to free this. As the ehci can be hotplug and unplug, this will leak host memory leak. In order to make the hierarchy clean, we should add a ehci pci finalize function, then call the clean