mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Update java/ql/src/Likely Bugs/Resource Leaks/CloseType.qll
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -228,7 +228,7 @@ private predicate closeCalled(Variable v) {
|
||||
)
|
||||
or
|
||||
// The "close" call could happen indirectly inside a helper method of unknown name.
|
||||
exists(int i | v.getAnAccess().isNthChildOf(e, i) |
|
||||
exists(int i | e.getArgument(i) = v.getAnAccess() |
|
||||
exists(Parameter p, int j | p.getPosition() = j and p.getCallable() = e.getMethod() |
|
||||
closeCalled(p) and i = j
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user