Skip to content

Commit

Permalink
Release buffer/cache on SPIFFS.end() (#5651)
Browse files Browse the repository at this point in the history
Releases the buffers allocated by the SPIFFS object when/if SPIFFS::end()
is called.
  • Loading branch information
earlephilhower authored Jan 25, 2019
1 parent 4d302f0 commit c26102b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cores/esp8266/spiffs_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ class SPIFFSImpl : public FSImpl
return;
}
SPIFFS_unmount(&_fs);
_workBuf.reset(nullptr);
_fdsBuf.reset(nullptr);
_cacheBuf.reset(nullptr);
}

bool format() override
Expand Down

0 comments on commit c26102b

Please sign in to comment.