Skip to content

Commit 7e45310

Browse files
authored
Fix UDP TX Buffer not set to NULL after free
thans @martinayotte
1 parent ba1efb9 commit 7e45310

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ uint8_t WiFiUDP::beginMulticast(IPAddress a, uint16_t p){
9999
void WiFiUDP::stop(){
100100
if(tx_buffer){
101101
delete[] tx_buffer;
102+
tx_buffer = NULL;
102103
}
103104
tx_buffer_len = 0;
104105
if(rx_buffer){

0 commit comments

Comments
 (0)