Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f94a7fc

Browse files
authored
Update MemoryLeakOnFailedCallToRealloc.ql
1 parent 2b4296f commit f94a7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/experimental/Security/CWE/CWE-401/MemoryLeakOnFailedCallToRealloc.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ReallocCallLeak extends FunctionCall {
3636

3737
ReallocCallLeak() {
3838
exists(AssignExpr ex |
39-
this.getTarget().hasGlobalOrStdName("realloc") and
39+
this.getTarget().hasGlobalOrStdName("realloc") and
4040
this = ex.getRValue() and
4141
hashCons(ex.getLValue()) = hashCons(this.getArgument(0)) and
4242
v.getAnAccess() = this.getArgument(0)

0 commit comments

Comments
 (0)