From 109ba7a3b44cf0d89068aa0ec812271d3bc4acbc Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Wed, 29 Jan 2020 12:30:08 +0200 Subject: [PATCH] Revert "std::shared_ptr Memory Leak (#3680)" (#3682) This reverts commit b2c678877c04428f06ec5f1f59cc4d204bcd05ec. --- libraries/WiFi/src/WiFiClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/WiFi/src/WiFiClient.cpp b/libraries/WiFi/src/WiFiClient.cpp index 3913208b..e422b636 100644 --- a/libraries/WiFi/src/WiFiClient.cpp +++ b/libraries/WiFi/src/WiFiClient.cpp @@ -196,8 +196,8 @@ WiFiClient & WiFiClient::operator=(const WiFiClient &other) void WiFiClient::stop() { - clientSocketHandle.reset(); // clientSocketHandle = NULL; - _rxBuffer.reset(); // _rxBuffer = NULL; + clientSocketHandle = NULL; + _rxBuffer = NULL; _connected = false; }