Fix null pointer

This commit is contained in:
Just Call Me Koko
2025-05-06 13:30:37 -04:00
parent 527414b3f4
commit 526b01e343

View File

@@ -28,8 +28,10 @@ void EvilPortal::setup() {
}
void EvilPortal::cleanup() {
free(index_html);
index_html = nullptr;
#ifdef HAS_PSRAM
free(index_html);
index_html = nullptr;
#endif
}
bool EvilPortal::begin(LinkedList<ssid>* ssids, LinkedList<AccessPoint>* access_points) {