Browse Source

Merge pull request #1184 from mcspr/patch-3

Fix memory leak in telnet module
webui
Xose Pérez 6 years ago
committed by GitHub
parent
commit
d30f40ead2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/telnet.ino

+ 1
- 1
code/espurna/telnet.ino View File

@ -36,8 +36,8 @@ void _telnetWebSocketOnSend(JsonObject& root) {
void _telnetDisconnect(unsigned char clientId) {
_telnetClients[clientId]->free();
_telnetClients[clientId] = NULL;
delete _telnetClients[clientId];
_telnetClients[clientId] = NULL;
wifiReconnectCheck();
DEBUG_MSG_P(PSTR("[TELNET] Client #%d disconnected\n"), clientId);
}


Loading…
Cancel
Save