mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +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);
|
libxl_dominfo_dispose(&d_info);
|
||||||
|
|
||||||
endjob:
|
endjob:
|
||||||
if (!libxlDomainObjEndJob(driver, vm)) {
|
if (!libxlDomainObjEndJob(driver, vm))
|
||||||
virObjectUnlock(vm);
|
|
||||||
vm = NULL;
|
vm = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (vm)
|
if (vm)
|
||||||
|
Loading…
Reference in New Issue
Block a user