[libvirt] [PATCH 10/11] qemu_cgroup: Need to call usbFreeDevice()
Osier Yang
jyang at redhat.com
Thu Jan 31 11:28:20 UTC 2013
On 2013年01月31日 03:36, John Ferlan wrote:
> ---
> src/qemu/qemu_cgroup.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
> index 6527146..9f0eaf9 100644
> --- a/src/qemu/qemu_cgroup.c
> +++ b/src/qemu/qemu_cgroup.c
> @@ -294,8 +294,10 @@ int qemuSetupCgroup(virQEMUDriverPtr driver,
> NULL)) == NULL)
> goto cleanup;
>
> - if (usbDeviceFileIterate(usb, qemuSetupHostUsbDeviceCgroup,
> -&data)< 0)
> + rc = usbDeviceFileIterate(usb, qemuSetupHostUsbDeviceCgroup,
> +&data);
> + usbFreeDevice(usb);
> + if (rc< 0)
> goto cleanup;
> }
> }
ACK.
More information about the libvir-list
mailing list