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

Address of stack memory associated with local variable 'replOperation' returned to caller

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-23

      I run clang-tidy locally in vim and it caught that in this function we take an input parameter by copy and then return a reference to its memory (which is bad because the temporary object will be destroyed when it goes out of scope.

      We should fix this.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: