Skip to content

Commit 2aee42a

Browse files
committed
Fix for arduino#814, Memory Leak
File isn't closed before being released, it leaks. This test has been verified and tested many times.
1 parent c111f66 commit 2aee42a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/SD/File.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ File::File(void) {
4444
}
4545

4646
File::~File(void) {
47+
close();
4748
// Serial.print("Deleted file object");
4849
}
4950

0 commit comments

Comments
 (0)