mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Update MemoryLeakOnFailedCallToRealloc.ql
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user