[SERVER-8720] Memory leak in DBClientReplicaSet::slaveConn Created: 25/Feb/13  Updated: 11/Jul/16  Resolved: 14/Mar/13

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.4.0-rc1
Fix Version/s: 2.4.2, 2.5.0

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-9534 mongos v2.4.0 eats all memory, possib... Closed
Operating System: ALL
Participants:

 Description   

Coverity flagged a resource leak here. new TagSet(emptyArray) allocates memory but ReadPreferenceSetting clones it, ends up leaked.

http://cov1.bci.10gen.cc:8080/reports.htm#v10007/p10001/defectInstanceId=195242



 Comments   
Comment by auto [ 27/Mar/13 ]

Author:

{u'date': u'2013-02-25T19:44:08Z', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-8720 Memory leak in DBClientReplicaSet::slaveConn
Branch: v2.4
https://github.com/mongodb/mongo/commit/182955c65bcd2db6f63e9b9dd0909422772b9e52

Comment by auto [ 14/Mar/13 ]

Author:

{u'date': u'2013-02-25T19:44:08Z', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-8720 Memory leak in DBClientReplicaSet::slaveConn
Branch: master
https://github.com/mongodb/mongo/commit/360e8336f7546297545c4363e0ac96c0754c02b1

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