Skip to content

Commit

Permalink
delete my_ssid to free memory
Browse files Browse the repository at this point in the history
  • Loading branch information
limes007 committed Feb 20, 2024
1 parent 9f643de commit a845077
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/webserver/esp-fs-webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ IPAddress FSWebServer::startWiFi(uint32_t timeout, const char *apSSID, const cha
{
ip = WiFi.localIP();
WiFi.persistent(true);
delete[] my_ssid;
return ip;
}
// If no connection after a while go in Access Point mode
Expand All @@ -223,6 +224,8 @@ IPAddress FSWebServer::startWiFi(uint32_t timeout, const char *apSSID, const cha
Serial.print(F("\nAP mode.\nServer IP address: "));
Serial.println(ip);
Serial.println();

delete[] my_ssid;
return ip;
}

Expand Down

0 comments on commit a845077

Please sign in to comment.