mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
fix memleak (#7203)
This commit is contained in:
parent
fad056442d
commit
1a9988ecf1
@ -72,6 +72,7 @@ bool ESP8266WiFiGratuitous::stationKeepAliveSetIntervalMs (uint32_t ms)
|
|||||||
if (_timer)
|
if (_timer)
|
||||||
{
|
{
|
||||||
os_timer_disarm(_timer);
|
os_timer_disarm(_timer);
|
||||||
|
free(_timer);
|
||||||
_timer = nullptr;
|
_timer = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user