Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9344

Minor leak in unit test framework

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.4.1
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: