kopia lustrzana https://github.com/jgromes/RadioLib
[HTTP] Fixed memory leak
rodzic
5ea9bc89fd
commit
c43ba03d7d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue