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

Fix leaked file descriptor in passwd test #4312

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Conversation

peterzhu2118
Copy link
Member

TestEtc#test_ractor has a leaked file descriptor because Etc.passwd opens the passwd file but does not close it.

Leaked file descriptor: TestEtc#test_ractor: 5 #<File::Stat dev=0x100058, ino=4908211, mode=0100644, nlink=1, uid=0, gid=0, rdev=0x0, size=1317, blksize=4096, blocks=8, atime=2021-03-11 09:25:20 +0000, mtime=2021-03-11 09:25:20 +0000, ctime=2021-03-11 17:19:50.071249721 +0000>

@nobu nobu merged commit 850448a into ruby:master Mar 24, 2021
@peterzhu2118 peterzhu2118 deleted the pz-passwd-leak branch March 24, 2021 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants