We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bfb8125 + 175ff96 commit eaa5a5fCopy full SHA for eaa5a5f
cpp/ql/src/jsf/4.10 Classes/AV Rule 79.ql
@@ -191,9 +191,7 @@ predicate freedInSameMethod(Resource r, Expr acquire) {
191
exists(Expr releaseExpr, string kind |
192
r.acquisitionWithRequiredKind(acquire, kind) and
193
releaseExpr = r.getAReleaseExpr(kind) and
194
- releaseExpr.getEnclosingFunction().getEnclosingAccessHolder*() = acquire.getEnclosingFunction()
195
- // here, `getEnclosingAccessHolder*` allows us to go from a nested function or lambda
196
- // expression to the class method enclosing it.
+ releaseExpr.getEnclosingElement+() = acquire.getEnclosingFunction()
197
)
198
}
199
0 commit comments