fs: add missing call to uv_fs_req_cleanup · nodejs/node@52e4967 · GitHub
Skip to content

Commit 52e4967

Browse files
Justin-NietzelRafaelGSS
authored andcommitted
fs: add missing call to uv_fs_req_cleanup
Always call uv_fs_req_cleanup after calling uv_fs_open instead of just when uv_fs_open returns a negative result. I referenced ReadFileSync from node:js2c when making this change. https://github.com/bnoordhuis made the same suggestion based on the PR #49691. Fixes: #57800 PR-URL: #57811 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c083493 commit 52e4967

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_file.cc

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)