mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
LXC: Free variable vroot in lxcDomainDetachDeviceHostdevUSBLive()
The variable vroot should be freed in label cleanup. (cherry picked from commit 46c9bce4c8b0f2222cc50587ac968ced06eb1eff)
This commit is contained in:
parent
25637c4afb
commit
a15d9aa37e
@ -3878,7 +3878,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver,
|
||||
virDomainHostdevDefPtr def = NULL;
|
||||
int idx, ret = -1;
|
||||
char *dst = NULL;
|
||||
char *vroot;
|
||||
char *vroot = NULL;
|
||||
virUSBDevicePtr usb = NULL;
|
||||
|
||||
if ((idx = virDomainHostdevFind(vm->def,
|
||||
@ -3936,6 +3936,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver,
|
||||
cleanup:
|
||||
virUSBDeviceFree(usb);
|
||||
VIR_FREE(dst);
|
||||
VIR_FREE(vroot);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user