Lune

ICSE2026Top-tier venue

Project-Level Resource Leak Detection through Agent-based Ownership Analysis and Repair Pattern Verification

Chengxin Xu, Xiu Zhang, Xiaorui Gong

2026Year

Abstract

Resource leaks cause system performance degradation and crashes. Traditional static analysis approaches rely on predefined rules, limiting their ability to find unknown leaks. Emerging LLM-based methods can locate APIs but face challenges in large-scale projects, including high costs and numerous false positives. To address these limitations, we propose AROP, the first project-level resource leak detection framework integrating LLM-based agents. AROP first extracts project-level metadata to efficiently filter resource-related files. It then employs a detection agent to identify acquisition/release operations, followed by a validation agent and data-flow dependency analysis to reduce false positives. Finally, it determines leaks through leak repair pattern analysis.

Ask about this paper

Ask your agent about it.

Lune has read the top-tier papers around this one, so every answer names the papers it rests on.

Questions to start from

Your agent calls

Lunesearch_papers

Ask in Lune

Free to start. No credit card required.

lune papers get e82ab560-43d2-42ad-8881-51c7d891158d

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines
Project-Level Resource Leak Detection through Agent-based Ownership Analysis and Repair Pattern Verification | Lune Research