Skip to content

Commit e9f4572

Browse files
authored
Fixes Memory Leak (#8486)
1 parent 17e1ad5 commit e9f4572

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/MD5Builder.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ bool MD5Builder::addStream(Stream & stream, const size_t maxLen)
7878
// read data and check if we got something
7979
int numBytesRead = stream.readBytes(buf, readBytes);
8080
if(numBytesRead< 1) {
81+
free(buf);
8182
return false;
8283
}
8384

0 commit comments

Comments
 (0)