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 use-after-free issue when closing a connection #997

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

jzw-weride
Copy link
Contributor

async_cb frees process right after calling uv_close, which is prohibited. The correct method is using close callback.

See more information here

@jzw-weride
Copy link
Contributor Author

I'm not sure why win10 build failed. But it seems not related to my change, since I didn't touch anything other than 1 file.

@tsl0922 tsl0922 merged commit 4ca49a1 into tsl0922:main Oct 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.

2 participants