[SERVER-9344] Minor leak in unit test framework Created: 12/Apr/13  Updated: 16/Oct/15  Resolved: 16/Oct/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Randolph Tan Assignee: Unassigned
Resolution: Duplicate 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   

Valgrind detected leak in unittest/unittest.cpp:

       Suite* Suite::getSuite(const std::string& name) {
            Suite* result = _allSuites()[name];
            if (!result)
                // This is not being cleaned up
                result = new Suite(name);  // Suites are self-registering.
            return result;
        }

It looks like we just need to clean it up at the destructor.



 Comments   
Comment by Kamran K. [ 16/Oct/15 ]

Fixed as part of SERVER-15707

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