1
0
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:
Ivan Grokhotkov 2015-10-17 21:23:28 +02:00
commit b478eacef5

View File

@ -118,8 +118,10 @@ ICACHE_FLASH_ATTR String::String(double value, unsigned char decimalPlaces) {
}
ICACHE_FLASH_ATTR String::~String() {
if(buffer) {
free(buffer);
}
}
// /*********************************************/
// /* Memory Management */