[SERVER-10707] Coverity analysis defect 10178 Created: 07/Sep/13  Updated: 11/Jul/16  Resolved: 10/Sep/13

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Trivial - P5
Reporter: Asya Kamsky Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

A new defect has been detected and assigned to matt.kangas@10gen.com in Coverity Connect http://cov1.bci.10gen.cc:8080/
The defect was flagged by checker RESOURCE_LEAK in
file /src/mongo/util/net/listen.cpp
function mongo::Listener::_setupSockets(const std::vector<mongo::SockAddr, std::allocator<mongo::SockAddr>>&, std::vector<int, std::allocator<int>>&)
and this ticket was created by asya

http://cov1.bci.10gen.cc:8080/reports.htm#v10175/p10001/fileInstanceId=2069557&defectInstanceId=541181&mergedDefectId=10178



 Comments   
Comment by auto [ 10/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-10707 use ScopeGuard to close sockets in setupSockets

fixes coverity leakage report
Branch: master
https://github.com/mongodb/mongo/commit/894828f3836184b3d6710bfa43d3ad3d876ffa8e

Generated at Thu Feb 08 03:23:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.