Skip to content

Close fd leak in opendir / O_DIRECTORY #16463

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

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Mar 10, 2022

nfd must be closed when open() O_DIRECTORY fails with ENOTDIR.

Fixes: #16452
Signed-off-by: Christian Heimes [email protected]

@tiran
Copy link
Contributor Author

tiran commented Mar 10, 2022

test-browser-firefox is failing. It looks like an unrelated issue. Could somebody please restart the test?

nfd must be closed when open() O_DIRECTORY fails with ENOTDIR.

Fixes: emscripten-core#16452
Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran force-pushed the opendir_fd_leak branch from 9eb0dc8 to 9541684 Compare March 10, 2022 22:30
@sbc100 sbc100 enabled auto-merge (squash) March 10, 2022 23:21
@sbc100 sbc100 merged commit 5c4bcd1 into emscripten-core:main Mar 11, 2022
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

Successfully merging this pull request may close these issues.

NODERAWFS open() O_DIRECTORY / opendir() leak file descriptor on error
2 participants