Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant