fs: added test for missing call to uv_fs_req_cleanup · nodejs/node@edaf54d · GitHub
Skip to content

Commit edaf54d

Browse files
Justin-NietzelRafaelGSS
authored andcommitted
fs: added test for missing call to uv_fs_req_cleanup
Added a unit test for testing the memory usage of readFileSync. Test is looking specifically for the the issue caused by failing to free the filepath buffer in fs::ReadFileUtf8(), but it will also catch other significant memory leaks in readFileSync() as well. Refs: #57800 PR-URL: #57811 Fixes: #57800 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9f403e9 commit edaf54d

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions

0 commit comments

Comments
 (0)