Skip to content

Commit

Permalink
Fix for MD5 leak bug, issue esp8266#7195
Browse files Browse the repository at this point in the history
  • Loading branch information
luiss-mind committed Apr 7, 2020
1 parent d600cc7 commit 47cc628
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/esp8266/MD5Builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 47cc628

Please sign in to comment.