mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
feat: Simplify inner-call release detection logic in resource filtering
This commit is contained in:
parent
ebe4a15a72
commit
064801a3a4
1 changed files with 5 additions and 4 deletions
|
|
@ -65,10 +65,11 @@ fn find_release_nodes(ctx: &AnalysisContext, release_patterns: &[&str]) -> Vec<N
|
|||
.node_indices()
|
||||
.filter(|&idx| {
|
||||
let info = &ctx.cfg[idx];
|
||||
if let Some(callee) = &info.call.callee {
|
||||
if info.kind == StmtKind::Call && matches_release(callee) {
|
||||
return true;
|
||||
}
|
||||
if let Some(callee) = &info.call.callee
|
||||
&& info.kind == StmtKind::Call
|
||||
&& matches_release(callee)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Inner-call-release-in-arg: any kind, the close lives in an
|
||||
// argument to the outer wrapper.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue