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

Do not close nil stream when it failed to open #87

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

etan-status
Copy link
Contributor

When stream fails to open during loading of TOML file, stream remains set to nil. The finally block then triggers SIGSEGV when it tries to close the stream that was never fully opened. Only install the finally block once stream was initialized to fix this.

When stream fails to open during loading of TOML file, `stream` remains
set to `nil`. The `finally` block then triggers SIGSEGV when it tries
to close the stream that was never fully opened. Only install the
`finally` block once `stream` was initialized to fix this.
@etan-status etan-status merged commit cb1fc73 into master Jun 13, 2024
34 checks passed
@etan-status etan-status deleted the dev/etan/dc-closefin branch June 13, 2024 11:33
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.

1 participant