Update MemoryLeakOnFailedCallToRealloc.ql

This commit is contained in:
ihsinme
2021-01-28 15:47:38 +03:00
committed by GitHub
parent 2b4296feb1
commit f94a7fc2f0

View File

@@ -36,7 +36,7 @@ class ReallocCallLeak extends FunctionCall {
ReallocCallLeak() {
exists(AssignExpr ex |
this.getTarget().hasGlobalOrStdName("realloc") and
this.getTarget().hasGlobalOrStdName("realloc") and
this = ex.getRValue() and
hashCons(ex.getLValue()) = hashCons(this.getArgument(0)) and
v.getAnAccess() = this.getArgument(0)