Skip to content

Commit

Permalink
[mdns]: fix incorrect memory free for mdns browse
Browse files Browse the repository at this point in the history
  • Loading branch information
gytxxsy committed Jan 22, 2025
1 parent 6d19aab commit 58b0789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/mdns/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -4295,8 +4295,10 @@ void mdns_parse_packet(mdns_rx_packet_t *packet)
debug_printf_browse_result_all(out_sync_browse->sync_result->result);
#endif // MDNS_ENABLE_DEBUG
_mdns_sync_browse_action(ACTION_BROWSE_SYNC, out_sync_browse);
out_sync_browse = NULL;
} else {
free(out_sync_browse);
out_sync_browse = NULL;
}
}

Expand Down

0 comments on commit 58b0789

Please sign in to comment.