Files
codeql/cpp/ql/src/Critical/MemoryNeverFreed.qhelp
2018-08-02 17:53:23 +01:00

27 lines
511 B
XML

<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
This rule finds calls to the <code>alloc</code> family of functions without a corresponding <code>free</code> call in the entire program.
This leads to memory leaks.
</p>
<include src="aliasAnalysisWarning.qhelp" />
</overview>
<recommendation>
<p>Ensure that all memory allocated by the program is freed before it terminates.</p>
</recommendation>
<example>
<sample src="MemoryNeverFreed.cpp" />
</example>
</qhelp>