[SERVER-20244] Should eliminate usage of malloc/strdup/strndup etc Created: 01/Sep/15 Updated: 06/Dec/22 Resolved: 13/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Geert Bosch | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Storage Execution
|
||||||||
| Participants: | |||||||||
| 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. |