mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
LXC: Free variable vroot in lxcDomainDetachDeviceHostdevUSBLive()
The variable vroot should be freed in label cleanup.
This commit is contained in:
parent
93e599750e
commit
46c9bce4c8
@ -3766,7 +3766,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,
|
||||
@ -3824,6 +3824,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver,
|
||||
cleanup:
|
||||
virUSBDeviceFree(usb);
|
||||
VIR_FREE(dst);
|
||||
VIR_FREE(vroot);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user