diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2560dd00ed3483343fae10aa901f41e5244b0b0d..113dfb4282d21cf511fa8e4a71fff7a9dbe212e7 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18544,7 +18544,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))) {