Memory is managed with malloc, calloc, realloc or free, which do not run constructors or destructors
What it finds
The C allocation functions hand out raw bytes: no constructor runs, no destructor runs on free, and objects of most class types cannot live there. new with smart pointers or containers manage objects.
From the rule's source, c_memory_management.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/cpp:c-memory-management" = "note"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/cpp:c-memory-management] reason="..."tx0 explain tx0/cpp:c-memory-management shows the same in the terminal. Found a false positive? Report it.