mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
libxl: don't unlock virDomainObj if refcnt is 0
Commit 6472e54a
unlocks the virDomainObj even if libxlDomainObjEndJob
returns false, indicating that its refcnt has dropped to 0.
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
97b56031a9
commit
afbb8a4c8c
@ -4816,10 +4816,8 @@ libxlDomainMemoryStats(virDomainPtr dom,
|
||||
libxl_dominfo_dispose(&d_info);
|
||||
|
||||
endjob:
|
||||
if (!libxlDomainObjEndJob(driver, vm)) {
|
||||
virObjectUnlock(vm);
|
||||
if (!libxlDomainObjEndJob(driver, vm))
|
||||
vm = NULL;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (vm)
|
||||
|
Loading…
Reference in New Issue
Block a user