Skip to content

Commit 53d4a10

Browse files
geoffw0subatoi
andauthored
Update cpp/ql/src/Critical/DoubleFree.qhelp
Co-authored-by: Ben Ahmady <[email protected]>
1 parent 088f829 commit 53d4a10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/ql/src/Critical/DoubleFree.qhelp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ In the following example, <code>buff</code> is allocated and then freed twice:
2626
</p>
2727
<sample src="DoubleFreeBad.cpp" />
2828
<p>
29-
Reviewing the code above, the issue can be fixed by simply deleting the additonal call to
30-
<code>free(buff)</code>. Another buffer <code>new_buffer</code> is allocated, but we can see the intent was
31-
not to free <code>new_buffer</code> as this pointer is returned by the function.
29+
Reviewing the code above, the issue can be fixed by simply deleting the additional call to
30+
<code>free(buff)</code>.
3231
</p>
3332
<sample src="DoubleFreeGood.cpp" />
3433
<p>

0 commit comments

Comments
 (0)