1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +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

View File

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