mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-10 14:42:08 +03:00
fix possible free of null in String
This commit is contained in:
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /*********************************************/
|
// /*********************************************/
|
||||||
|
Reference in New Issue
Block a user