-
Notifications
You must be signed in to change notification settings - Fork 185
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 memory leak in fs.scandir sync mode #694
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, would be nice if we could have caught this in CI somehow.
I found it in long time luvit/webserver. luv test close will free all mems, so not found by valgrind or Asan. |
Just to note that this change caused an issue in Neovim: neovim/neovim#27678 (comment)
|
That makes sense, although I can't quite figure out how to reproduce that particular crash yet. I believe the real problem here is that This PR tries to workaround that by So the real fix here needs to be making the return of EDIT: Potential fix: #696 |
No description provided.