Inspection: Memory leak
Settings | Editor | Inspections - C/C++ | Data Flow Analysis
Default severity: Warning
Clangd-based engine
As part of the Data flow analysis, CLion provides the Memory leak inspection, which detects possible memory leaks and helps you identify their origin.

The Memory leak inspection also reports the pointers that may point to deallocated memory:

You can change the severity and scope of this inspection in Settings | Editor | Inspections, the C/C++ | Data Flow Analysis node:

Thanks for your feedback!
Was this page helpful?