Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 41d271d

Browse files
lrodorigoluiss-mindd-a-vdevyteearlephilhower
authoredApr 9, 2020
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
 

‎cores/esp8266/MD5Builder.cpp

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.