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

Should eliminate usage of malloc/strdup/strndup etc

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • 3.1.7
    • None
    • Internal Code
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-execution Backlog - Storage Execution Team
              geert.bosch@mongodb.com Geert Bosch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: