diff --git a/lib/dns/zone.c b/lib/dns/zone.c index afdb7049a9..3395d68488 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -1076,7 +1076,7 @@ dns_zone_create(dns_zone_t **zonep, isc_mem_t *mctx) { /* Must be after magic is set. */ result = dns_zone_setdbtype(zone, dbargc_default, dbargv_default); if (result != ISC_R_SUCCESS) { - goto free_erefs; + goto free_stats; } ISC_EVENT_INIT(&zone->ctlevent, sizeof(zone->ctlevent), 0, NULL,