diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 18617cc2f9..c341482a03 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -4739,7 +4739,7 @@ static void _mdns_search_result_add_txt(mdns_search_once_t *search, mdns_txt_ite free((char *)(txt[i].value)); } free(txt); - free(r->txt_value_len); + free(txt_value_len); } /** @@ -7437,7 +7437,7 @@ static void _mdns_browse_result_add_txt(mdns_browse_t *browse, const char *insta free((char *)(txt[i].value)); } free(txt); - free(r->txt_value_len); + free(txt_value_len); return; }