diff --git a/esp32_marauder/EvilPortal.cpp b/esp32_marauder/EvilPortal.cpp index d5c6e8a..991c608 100644 --- a/esp32_marauder/EvilPortal.cpp +++ b/esp32_marauder/EvilPortal.cpp @@ -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* ssids, LinkedList* access_points) {