未验证 提交 b2c67887 编写于 作者: C chuck todd 提交者: GitHub

std::shared_ptr Memory Leak (#3680)

* std::shared_ptr Memory Leak

clientSocketHande and _rxBuffer are std::shared_ptr, the stop() call was not correctly releasing them and the operator= had similar problems fix for #3679

* operator= second attempt

* operator= third time
上级 ed220bd0
......@@ -196,8 +196,8 @@ WiFiClient & WiFiClient::operator=(const WiFiClient &other)
void WiFiClient::stop()
{
clientSocketHandle = NULL;
_rxBuffer = NULL;
clientSocketHandle.reset(); // clientSocketHandle = NULL;
_rxBuffer.reset(); // _rxBuffer = NULL;
_connected = false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册