--- src/util/virclosecallbacks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virclosecallbacks.c b/src/util/virclosecallbacks.c index 4f26172..b6eb5b5 100644 --- a/src/util/virclosecallbacks.c +++ b/src/util/virclosecallbacks.c @@ -343,8 +343,7 @@ virCloseCallbacksRun(virCloseCallbacksPtr closeCallbacks, } vm = list->entries[i].callback(vm, conn, opaque); - if (vm) - virObjectUnlock(vm); + virObjectUnlock(vm); } VIR_FREE(list->entries); VIR_FREE(list); -- 1.9.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list