[SERVER-2504] new[] used incorrectly with boost thread_specific_ptr in mr.cpp Created: 09/Feb/11  Updated: 12/Jul/16  Resolved: 10/Feb/11

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

In mr.cpp the _tl value is allocated with new[] but the thread_specific_ptr destructor calls the non array version of delete.



 Comments   
Comment by auto [ 10/Feb/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: don't use new[] for boost shared ptr SERVER-2504
https://github.com/mongodb/mongo/commit/e0c8d9a6fc6bc5a23873b45a1f8c9d52163e79d7

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