[HTTP] Fixed memory leak
This commit is contained in:
parent
5ea9bc89fd
commit
c43ba03d7d
1 changed files with 24 additions and 23 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue