Skip to content

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

Merged
muesli merged 2 commits intomuesli:mainfrom
tklauser:fix-fd-leak-on-error
Jun 22, 2022
Merged

Don't leak epoll/kqueue fd on error#10
muesli merged 2 commits intomuesli:mainfrom
tklauser:fix-fd-leak-on-error

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