Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Leak of file descriptor when creating QueueFile from corrupted queue file. #204

Open
MacSwinarski opened this issue Dec 27, 2018 · 1 comment

Comments

@MacSwinarski
Copy link

Leak of file descriptors in QueueFile constructor.

public QueueFile(File file) throws IOException {
    if (!file.exists()) initialize(file);
    raf = open(file);
    readHeader();
  }

When readHeader() throws and exception raf is never closed.

@MacSwinarski
Copy link
Author

Would you accept a PR with a 1.2.4-SNAPSHOT branch with the fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant