We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e485a16 commit 54d2028Copy full SHA for 54d2028
java/ql/src/Likely Bugs/Resource Leaks/CloseType.qll
@@ -228,7 +228,7 @@ private predicate closeCalled(Variable v) {
228
)
229
or
230
// The "close" call could happen indirectly inside a helper method of unknown name.
231
- exists(int i | v.getAnAccess().isNthChildOf(e, i) |
+ exists(int i | e.getArgument(i) = v.getAnAccess() |
232
exists(Parameter p, int j | p.getPosition() = j and p.getCallable() = e.getMethod() |
233
closeCalled(p) and i = j
234
0 commit comments