Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7510b commit 0287572Copy full SHA for 0287572
1 file changed
csharp/ql/src/API Abuse/DisposeNotCalledOnException.ql
@@ -54,9 +54,9 @@ private class DisposeCall extends MethodCall {
54
55
private predicate localFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
56
DataFlow::localFlowStep(nodeFrom, nodeTo) and
57
- not exists(AssignableDefinition def, UsingStmt uds |
+ not exists(AssignableDefinition def, UsingStmt us |
58
nodeTo.asExpr() = def.getAReachableRead() and
59
- def.getTargetAccess() = uds.getAVariableDeclExpr().getAccess()
+ def.getTargetAccess() = us.getAVariableDeclExpr().getAccess()
60
)
61
}
62
0 commit comments