mirror of https://gitee.com/openkylin/libvirt.git
lxc_driver: Need to check for vm before calling virDomainUnlock(vm)
This commit is contained in:
parent
31e0de1a85
commit
2e774db80e
src/lxc
|
@ -4513,7 +4513,8 @@ static int lxcDomainOpenNamespace(virDomainPtr dom,
|
|||
|
||||
ret = nfds;
|
||||
cleanup:
|
||||
virObjectUnlock(vm);
|
||||
if (vm)
|
||||
virObjectUnlock(vm);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue