diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f1df0929ad..89cbd60fca 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -19359,7 +19359,7 @@ virDomainListPopulate(void *payload, /* just count the machines */ if (!data->domains) { data->ndomains++; - return; + goto cleanup; } if (!(dom = virGetDomain(data->conn, vm->def->name, vm->def->uuid))) {