[SERVER-6814] memory leak on page fault exception in BtreeCursorImpl::init() Created: 21/Aug/12  Updated: 11/Jul/16  Resolved: 21/Aug/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.0-rc2, 2.3.0

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   

BtreeCursor::make() does not use smart pointers to guard the BtreeCursorImpl objects it allocates. If a page fault exception is thrown in BtreeCursorImpl::init() while the btree data is traversed to find the starting key, the BtreeCursorImpl will be orphaned.



 Comments   
Comment by auto [ 21/Aug/12 ]

Author:

{u'date': u'2012-08-21T14:06:10-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

Message: SERVER-6814 - fix memory leak in BtreeCursor::make
Branch: v2.2
https://github.com/mongodb/mongo/commit/a0698e7f385e867469ac8feeb4c8e12e732d630b

Comment by auto [ 21/Aug/12 ]

Author:

{u'date': u'2012-08-21T14:06:10-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

Message: SERVER-6814 - fix memory leak in BtreeCursor::make
Branch: master
https://github.com/mongodb/mongo/commit/51609845fceb8d54114594a7df874a87a861281d

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