diff --git a/cores/esp8266/MD5Builder.cpp b/cores/esp8266/MD5Builder.cpp index b32693ed73..04af4e841a 100644 --- a/cores/esp8266/MD5Builder.cpp +++ b/cores/esp8266/MD5Builder.cpp @@ -55,6 +55,7 @@ bool MD5Builder::addStream(Stream & stream, const size_t maxLen){ // read data and check if we got something int numBytesRead = stream.readBytes(buf, readBytes); if(numBytesRead< 1) { + free(buf); // release the buffer return false; }