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

Don't leak epoll/kqueue fd on error #10

Merged
merged 2 commits into from
Jun 22, 2022
Merged

Don't leak epoll/kqueue fd on error #10

merged 2 commits into from
Jun 22, 2022

Conversation

tklauser
Copy link
Contributor

Close the previously created epoll/kqueue fd in case of a successive
error in NewReader.

Close the previously created epoll/kqueue fd in case of a successive
error in NewReader.
@muesli
Copy link
Owner

muesli commented Jun 22, 2022

Good catch, @tklauser!

@muesli muesli added the bug Something isn't working label Jun 22, 2022
@muesli muesli merged commit 9e10037 into muesli:main Jun 22, 2022
@tklauser tklauser deleted the fix-fd-leak-on-error branch June 22, 2022 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants