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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.1
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: