Skip to content

Commit 109ba7a

Browse files
authored
Revert "std::shared_ptr Memory Leak (#3680)" (#3682)
This reverts commit b2c6788.
1 parent b2c6788 commit 109ba7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/WiFi/src/WiFiClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ WiFiClient & WiFiClient::operator=(const WiFiClient &other)
196196

197197
void WiFiClient::stop()
198198
{
199-
clientSocketHandle.reset(); // clientSocketHandle = NULL;
200-
_rxBuffer.reset(); // _rxBuffer = NULL;
199+
clientSocketHandle = NULL;
200+
_rxBuffer = NULL;
201201
_connected = false;
202202
}
203203

0 commit comments

Comments
 (0)