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 Sep 1, 2023
1 parent e33dd0a commit 1216308
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
@@ -269,6 +269,7 @@ int main(int argc, char * argv[])
chip::DeviceLayer::PlatformMgr().RunEventLoop();

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

Shutdown();

0 comments on commit 1216308

Please sign in to comment.