Skip to content

Commit

Permalink
src: fix resource leak in node::fs::FileHandle
Browse files Browse the repository at this point in the history
PR-URL: #23793
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
refack authored and targos committed Nov 18, 2018
1 parent 98443b5 commit f3dbc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class FileHandle : public AsyncWrap, public StreamBase {
ref_.Reset(env->isolate(), ref);
}

~CloseReq() {
~CloseReq() override {
uv_fs_req_cleanup(req());
promise_.Reset();
ref_.Reset();
Expand Down

0 comments on commit f3dbc70

Please sign in to comment.