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 a possible leak of a file descriptor #3246

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

mame
Copy link
Member

@mame mame commented Nov 28, 2024

When mmap fails for any reason, the fd must be closed.

Coverity Scan found this issue.

When mmap fails for any reason, the fd must be closed.

Coverity Scan found this issue.
@kddnewton kddnewton merged commit 80c090e into ruby:main Nov 28, 2024
55 checks passed
mame added a commit to mame/ruby that referenced this pull request Nov 28, 2024
mame added a commit to mame/ruby that referenced this pull request Nov 28, 2024
The same issue as ruby/prism#3246

Coverity Scan found this issue.
@mame mame deleted the fix-possible-fd-leak branch November 28, 2024 03:58
mame added a commit to ruby/ruby that referenced this pull request Nov 28, 2024
The same issue as ruby/prism#3246

Coverity Scan found this issue.
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.

2 participants