Skip to content

Commit

Permalink
Merge pull request #569 from DejinChen/fix/free_txt_value_len
Browse files Browse the repository at this point in the history
fix(mdns): free txt value len (IDFGH-12817)
  • Loading branch information
gabsuren authored May 14, 2024
2 parents 8f19c60 + afd98bb commit d45c5ce
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 d45c5ce

Please sign in to comment.