From dea78d17ce28e55e0cb5a5fc83d7798fb123055a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 20 Nov 2017 17:12:00 +0100 Subject: [PATCH] Free memory in debug --- code/espurna/debug.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/espurna/debug.ino b/code/espurna/debug.ino index 48e561f7..4a24656c 100644 --- a/code/espurna/debug.ino +++ b/code/espurna/debug.ino @@ -47,6 +47,8 @@ void debugSend(const char * format, ...) { _telnetWrite(buffer, strlen(buffer)); #endif + free(buffer); + } void debugSend_P(PGM_P format, ...) { @@ -83,6 +85,8 @@ void debugSend_P(PGM_P format, ...) { _telnetWrite(buffer, strlen(buffer)); #endif + free(buffer); + } // -----------------------------------------------------------------------------