diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f1df0929ad68dc8029acc0e5cc858bbfbb41b457..89cbd60fcad09431d6ec91332335348fddfb2446 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))) {