soot-oss / SootUp

A new version of Soot with a completely overhauled architecture
https://soot-oss.github.io/SootUp/
GNU Lesser General Public License v2.1
590 stars 81 forks source link

[Bug]: Resource Leak detected in sootup.java.bytecode.frontend module #1098

Closed Bryce7832 closed 1 month ago

Bryce7832 commented 1 month ago

What happened?

Ran the Resource Leak Checker and detected a resource leak in sootup.java.bytecode.frontend module.

Version

Latest develop branch

Relevant log output

sootup.java.bytecode.frontend/src/main/java/sootup/java/bytecode/frontend/inputlocation/JrtFileSystemAnalysisInputLocation.java:[154,23] error: [required.method.not.called] @MustCall method close may not have been invoked on Files.walk(archiveRoot) or any of its aliases.
[ERROR]   The type of object is: java.util.stream.Stream<java.nio.file.Path>.
[ERROR]   Reason for going out of scope: regular method exit