Skip to content

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 christian@python.org

@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 <christian@python.org>
@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