Skip to content

Commit

Permalink
Fix echo_requester TCP leak (#12031)
Browse files Browse the repository at this point in the history
#### Problem

`echo_requester.cpp` leaks TCP endpoints.

Instance of #11880 _Possible use of destroyed pool objects_

#### Change overview

Shut down `TCPManager`.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR #11698 but deferred due to current leaks),
then Cirque CI fails without this change.
  • Loading branch information
kpschoedel authored and pull[bot] committed Apr 14, 2022
1 parent eabe6ff commit f1ea9f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/messaging/tests/echo/echo_requester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ int main(int argc, char * argv[])
chip::DeviceLayer::PlatformMgr().RunEventLoop();

gUDPManager.Close();
gTCPManager.Close();

Shutdown();

Expand Down

0 comments on commit f1ea9f0

Please sign in to comment.