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

Should eliminate usage of malloc/strdup/strndup etc

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.1.7
    • Component/s: Internal Code
    • Labels:
      None
    • Storage Execution

      Remove the remaining few uses of these, and add a linter check (or preferably clang-tidy or so) that will verify no new uses are introduced.

      Memory should only be allocated through "new" or otherwise mongoMalloc, but never with plain malloc() or other functions calling it, such as strdup.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: