diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index af1909bc556adddafd19d40840c3509fa2e4a7e0..0f18f3d616b97e7aeb2991b776977fb5605ca4da 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18391,7 +18391,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))) {