diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index e5f0e8530c..18c1352343 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -3048,6 +3048,7 @@ static void free_delegated_hostnames(void) host = host->next; free(item); } + _mdns_host_list = NULL; } static bool _mdns_delegate_hostname_remove(const char *hostname)