Skip to content

Commit df78428

Browse files
jeremyB01fpistm
authored andcommitted
Fixing bug that caused large memory consumption
Signed-off-by: jeremyB01 <[email protected]>
1 parent 60bbf39 commit df78428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/EthernetClient.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ void EthernetClient::stop()
194194
if (status() != TCP_CLOSING) {
195195
tcp_connection_close(_tcp_client->pcb, _tcp_client);
196196
}
197+
mem_free(_tcp_client);
197198
}
198199

199200
uint8_t EthernetClient::connected()

0 commit comments

Comments
 (0)