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

Minor leak in unit test framework

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 2.4.1
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: