diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9d98f487ea..84570c001c 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -16837,7 +16837,7 @@ int virDomainLeaseIndex(virDomainDef *def, void virDomainLeaseInsertPreAlloc(virDomainDef *def) { - def->leases = g_renew(virDomainLeaseDef *, def->leases, def->nleases + 1); + VIR_EXPAND_N(def->leases, def->nleases, 1); } void virDomainLeaseInsert(virDomainDef *def, virDomainLeaseDef *lease)