Commit 6472e54a unlocks the virDomainObj even if libxlDomainObjEndJob
returns false, indicating that its refcnt has dropped to 0.
Signed-off-by: Jim Fehlig <jfehlig(a)suse.com>
---
src/libxl/libxl_driver.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 4609c00..d77a0e4 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -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)
--
2.1.4