Skip to content

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

@Bryce7832

Description

@Bryce7832

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions