1
0
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:
Markus Sattler 2015-10-09 14:32:19 +02:00
parent 0bd3b72550
commit 996f2b53dd

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 */