From c26102b34ce3e4dac9510e1e59ba261ebbc1cd8d Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Fri, 25 Jan 2019 00:00:09 +0000 Subject: [PATCH] Release buffer/cache on SPIFFS.end() (#5651) Releases the buffers allocated by the SPIFFS object when/if SPIFFS::end() is called. --- cores/esp8266/spiffs_api.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cores/esp8266/spiffs_api.h b/cores/esp8266/spiffs_api.h index 08f9eb879..4a32b8ec0 100644 --- a/cores/esp8266/spiffs_api.h +++ b/cores/esp8266/spiffs_api.h @@ -154,6 +154,9 @@ public: return; } SPIFFS_unmount(&_fs); + _workBuf.reset(nullptr); + _fdsBuf.reset(nullptr); + _cacheBuf.reset(nullptr); } bool format() override