Skip to content

Commit 41d271d

Browse files
lrodorigoluiss-mindd-a-vdevyteearlephilhower
authored
Fix for MD5 leak bug, issue #7195 (#7197)
Co-authored-by: Luiss <[email protected]> Co-authored-by: david gauchard <[email protected]> Co-authored-by: Develo <[email protected]> Co-authored-by: Earle F. Philhower, III <[email protected]>
1 parent 1a9988e commit 41d271d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cores/esp8266/MD5Builder.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ bool MD5Builder::addStream(Stream & stream, const size_t maxLen){
5555
// read data and check if we got something
5656
int numBytesRead = stream.readBytes(buf, readBytes);
5757
if(numBytesRead< 1) {
58+
free(buf); // release the buffer
5859
return false;
5960
}
6061

0 commit comments

Comments
 (0)