[HTTP] Fixed memory leak

This commit is contained in:
jgromes 2019-07-23 20:22:35 +02:00
parent 5ea9bc89fd
commit c43ba03d7d

View file

@ -161,6 +161,7 @@ int16_t HTTPClient::post(const char* url, const char* content, String& response,
int16_t state = _tl->openTransportConnection(host, "TCP", _port);
delete[] host;
if(state != ERR_NONE) {
delete[] request;
return(state);
}