Mining Resource-Operation Knowledge to Support Resource Leak Detection

Chong Wang, Yiling Lou, Xin Peng, Jianan Liu, Baihan Zou · 2023

Resource leaks, which are caused by acquired resources not being released, often result in performance degradation and system crashes. Resource leak detection relies on two essential components: identifying potential Resource Acquisition and Release (RAR) API pairs, and subsequently analyze code to uncover instances where the corresponding release API call is absent after an acquisition API call. Yet, existing techniques confine themselves to an incomplete pair pool, either pre-defined manually or mined from project-specific code corpus, thus limiting coverage across libraries/APIs and po- tentially overlooking latent resource leaks.

Read the paper · More papers on PaperTik