mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
lxc_driver: Need to check for vm before calling virDomainUnlock(vm)
This commit is contained in:
parent
31e0de1a85
commit
2e774db80e
@ -4513,6 +4513,7 @@ static int lxcDomainOpenNamespace(virDomainPtr dom,
|
|||||||
|
|
||||||
ret = nfds;
|
ret = nfds;
|
||||||
cleanup:
|
cleanup:
|
||||||
|
if (vm)
|
||||||
virObjectUnlock(vm);
|
virObjectUnlock(vm);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user