Skip to content

Commit c26102b

Browse files
Release buffer/cache on SPIFFS.end() (#5651)
Releases the buffers allocated by the SPIFFS object when/if SPIFFS::end() is called.
1 parent 4d302f0 commit c26102b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cores/esp8266/spiffs_api.h

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ class SPIFFSImpl : public FSImpl
154154
return;
155155
}
156156
SPIFFS_unmount(&_fs);
157+
_workBuf.reset(nullptr);
158+
_fdsBuf.reset(nullptr);
159+
_cacheBuf.reset(nullptr);
157160
}
158161

159162
bool format() override

0 commit comments

Comments
 (0)