diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 866401375f6ccd3ca04d70b5805f55aaf572b04c..b716cc54b3613d6acf9efa46db5460d4e341f221 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -15272,7 +15272,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))) {