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

add comments in code about intentional memory leak in ReplSetImpl::initFromConfig()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.9.1
    • None
    • Replication
    • None
    • ALL

    Description

      A "new Member" allocated in this function may be leaked according to valgrind. Quick look through the code suggests that this function can be called multiple times (in one particular case if we are reconfiguring a repl set) and don't see immediately that they are cleaned up.

      It looks like the members in _members and _self can be leaked.

      It also appears that the _members values are leaked intentionally.

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: