From c35a1f207988ad7f52e0f2506c41f8044e33ef83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Wed, 23 Dec 2020 11:08:14 -0500 Subject: [PATCH] Plug mutex semaphore leak Introduced by previous commit. This prevents a leak of one mutex semaphore structure per destroyed client socket. --- src/AsyncTCP.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index 5871d68..cc8d33a 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -286,6 +286,7 @@ AsyncClient::AsyncClient(int sockfd) AsyncClient::~AsyncClient() { if (_socket != -1) _close(); + vSemaphoreDelete(_write_mutex); } void AsyncClient::setRxTimeout(uint32_t timeout){