diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c51cd11b9d9c17b25edcf387354d00c72d3beee6..53889e0e04a7b7c893e20542e3d7713506b9703c 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -17343,9 +17343,9 @@ virDomainObjListLoadAllConfigs(virDomainObjListPtr doms, notify, opaque); if (dom) { - virObjectUnlock(dom); if (!liveStatus) dom->persistent = 1; + virObjectUnlock(dom); } }