From df784287cd0e7468e88596c9517e0347609bc448 Mon Sep 17 00:00:00 2001 From: jeremyB01 <149951864+jeremyB01@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:16:11 +0100 Subject: [PATCH] Fixing bug that caused large memory consumption Signed-off-by: jeremyB01 <149951864+jeremyB01@users.noreply.github.com> --- src/EthernetClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EthernetClient.cpp b/src/EthernetClient.cpp index b4ad99c..aa2606b 100644 --- a/src/EthernetClient.cpp +++ b/src/EthernetClient.cpp @@ -194,6 +194,7 @@ void EthernetClient::stop() if (status() != TCP_CLOSING) { tcp_connection_close(_tcp_client->pcb, _tcp_client); } + mem_free(_tcp_client); } uint8_t EthernetClient::connected()