diff --git a/src/zeroconf/Bonjour.cxx b/src/zeroconf/Bonjour.cxx index b7a5eeb64..9fd70dc3c 100644 --- a/src/zeroconf/Bonjour.cxx +++ b/src/zeroconf/Bonjour.cxx @@ -97,11 +97,6 @@ BonjourInit(EventLoop &loop, const char *service_name, unsigned port) if (error != kDNSServiceErr_NoError) { LogError(bonjour_domain, "Failed to register zeroconf service"); - - if (dnsReference) { - DNSServiceRefDeallocate(dnsReference); - dnsReference = nullptr; - } return; }