Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !2661

resource leak due Files.list

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open lujiefsi requested to merge github/fork/lujiefsi/MovePythonWhlDataStep into main Oct 01, 2021
  • Overview 4
  • Commits 2
  • Pipelines 1
  • Changes 1

see https://github.com/facebook/buck/blob/5444652af489563ddaf595a634341dd14fd41399/src/com/facebook/buck/features/python/MovePythonWhlDataStep.java#L59

Files.list will opendir and we should close it.

try(Stream list = Files.list()) is the most common practice

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/lujiefsi/MovePythonWhlDataStep