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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.1
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: