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

readFile() leaking #8

Open
benkirk7 opened this issue May 10, 2021 · 2 comments
Open

readFile() leaking #8

benkirk7 opened this issue May 10, 2021 · 2 comments

Comments

@benkirk7
Copy link

This function does not automatically close the file if passed as a fd.

@mcollina
Copy link
Member

Would you like to send a Pull Request to address this issue? Remember to add unit tests.

@benkirk7
Copy link
Author

I don't have the time right now putting out fires at work, but the fix is easy... just call fs.close(fd, callback).

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

No branches or pull requests

2 participants