[SERVER-13870] Use RAII to prevent memory leaking in shard targeting Created: 07/May/14  Updated: 11/Jul/16  Resolved: 07/May/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.7.0
Fix Version/s: 2.7.1

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

Operating System: ALL
Participants:

 Description   

uassert() can throw a exception, so we should use RAII to prevent leaking.



 Comments   
Comment by Githook User [ 07/May/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-13870 Use RAII to prevent memory leaking in shard targeting
Branch: master
https://github.com/mongodb/mongo/commit/a81767d4db70252fe9997d50a93ed3e7460202f1

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