mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Merge pull request #873 from Links2004/string_fix
fix possible free of null in String
This commit is contained in:
commit
b478eacef5
@ -118,7 +118,9 @@ ICACHE_FLASH_ATTR String::String(double value, unsigned char decimalPlaces) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ICACHE_FLASH_ATTR String::~String() {
|
ICACHE_FLASH_ATTR String::~String() {
|
||||||
|
if(buffer) {
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /*********************************************/
|
// /*********************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user