mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
fix possible free of null in String
This commit is contained in:
parent
0bd3b72550
commit
996f2b53dd
@ -118,7 +118,9 @@ ICACHE_FLASH_ATTR String::String(double value, unsigned char decimalPlaces) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ICACHE_FLASH_ATTR String::~String() {
|
ICACHE_FLASH_ATTR String::~String() {
|
||||||
free(buffer);
|
if(buffer) {
|
||||||
|
free(buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /*********************************************/
|
// /*********************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user