Skip to content

Commit f1ea9f0

Browse files
kpschoedelpull[bot]
authored andcommitted
Fix echo_requester TCP leak (#12031)
#### 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.
1 parent eabe6ff commit f1ea9f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/messaging/tests/echo/echo_requester.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ int main(int argc, char * argv[])
269269
chip::DeviceLayer::PlatformMgr().RunEventLoop();
270270

271271
gUDPManager.Close();
272+
gTCPManager.Close();
272273

273274
Shutdown();
274275

0 commit comments

Comments
 (0)