Update cpp/ql/src/Best Practices/GuardedFree.qhelp

Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Jeroen Ketema
2024-11-28 16:36:13 +01:00
committed by GitHub
parent f9d9f9ba62
commit 6d37efc0d8

View File

@@ -4,7 +4,7 @@
<qhelp>
<overview>
<p>The <code>free</code> function, which deallocates heap memory, may accept a NULL pointer and take no action. Therefore, it is unnecessary to check its argument for the value of NULL before a function call to <code>free</code>. As such, these guards may hinder performance and readability.</p>
<p>The <code>free</code> function, which deallocates heap memory, may accept a NULL pointer and take no action. Therefore, it is unnecessary to check the argument for the value of NULL before a function call to <code>free</code>. As such, these guards may hinder performance and readability.</p>
</overview>
<recommendation>