Files
codeql/cpp/ql/src/Likely Bugs/InconsistentCallOnResult.qhelp
2018-08-02 17:53:23 +01:00

33 lines
717 B
XML

<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>If the same operation
(e.g. <code>free</code>, <code>delete</code>, <code>close</code>, etc.)
is usually performed on the result of a method call,
then any instances where it is not performed
may indicate misuse of the API and could cause resource leaks or other issues.
</p>
</overview>
<recommendation>
<p>Examine the code to determine if the return value is treated correctly in this particular case.
</p>
</recommendation>
<references>
<li>
Tutorialspoint - The C++ Programming Language: <a href="http://www.tutorialspoint.com/cplusplus/cpp_dynamic_memory.htm">C++ Dynamic Memory</a>
</li>
</references>
</qhelp>