Skip to content

Commit

Permalink
fix(mdns): free txt value len
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen committed May 10, 2024
1 parent 8f19c60 commit afd98bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mdns/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit afd98bb

Please sign in to comment.