# インスペクション: メモリリーク

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

> **TL;DR**
> `設定 | エディター | インスペクション`  -  `C/C++ | データフロー分析`
>
>
>
> デフォルトの重大度：   警告
>
>
>
> clangd   ベースのエンジン

[データフロー分析](global-dataflow-analysis.html)の一環として、CLion は   メモリリーク  インスペクションを提供し、メモリリークの可能性を検出し、その原因を特定するのに役立ちます。

![メモリリークの検出](https://resources.jetbrains.com/help/img/idea/2026.3/cl_inspection_allocatedmemoryleaked.png)

メモリリーク   インスペクションは、割り当て解除されたメモリを指す可能性のあるポインターも報告します。

![割り当て解除されたメモリへのポインタの検出](https://resources.jetbrains.com/help/img/idea/2026.3/cl_memleak_ptrdeallocated.png)

このインスペクションの [重大度](configuring-inspection-severities.html)と [スコープ](configuring-scopes-and-file-colors.html)は、  `設定 | エディター | インスペクション`  (  `C/C++ | データフロー分析`  ノード) で変更できます。

![メモリリークインスペクションの設定](https://resources.jetbrains.com/help/img/idea/2026.3/cl_memoryleak_settings.png)

## See also

### インスペクション

[データフロー分析](global-dataflow-analysis.html) [C/C++ インスペクションのリスト](list-of-c-cpp-inspections.html)

### プロシージャ

[Valgrind の memcheck](memory-profiling-with-valgrind.html)

