fix memory leak in fs.scandir sync mode#694
Conversation
squeek502
left a comment
There was a problem hiding this comment.
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.