mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
consequence of ::flush() update: fix potential double free (#3990)
This commit is contained in:
parent
f8b577b6c3
commit
022ea5a872
@ -288,7 +288,8 @@ public:
|
|||||||
data_size -= will_copy;
|
data_size -= will_copy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pbuf_free(_tx_buf_head);
|
if (_tx_buf_head)
|
||||||
|
pbuf_free(_tx_buf_head);
|
||||||
_tx_buf_head = 0;
|
_tx_buf_head = 0;
|
||||||
_tx_buf_cur = 0;
|
_tx_buf_cur = 0;
|
||||||
_tx_buf_offset = 0;
|
_tx_buf_offset = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user