From caefb971a4dafd695997264c115833bf2baa2ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Tue, 16 Feb 2021 18:27:43 -0500 Subject: [PATCH] Scrub write mutex ptr immediately after destroying it In order to detect possible memory corruption. --- src/AsyncTCP.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index 667daa7..5f9bae0 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -287,6 +287,7 @@ AsyncClient::~AsyncClient() { if (_socket != -1) _close(); vSemaphoreDelete(_write_mutex); + _write_mutex = NULL; } void AsyncClient::setRxTimeout(uint32_t timeout){