Skip to content

Commit

Permalink
src: add missing uv_fs_req_cleanup()
Browse files Browse the repository at this point in the history
This cleans up after the uv_fs_realpath() call a few lines up.

PR-URL: #27004
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
  • Loading branch information
cjihrig authored and BethGriggs committed Apr 8, 2019
1 parent 5f25ec5 commit 7fe980f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node_process_object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ MaybeLocal<Object> CreateProcessObject(
CHECK_NOT_NULL(req.ptr);
exec_path = std::string(static_cast<char*>(req.ptr));
}
uv_fs_req_cleanup(&req);
#endif
process
->Set(env->context(),
Expand Down

0 comments on commit 7fe980f

Please sign in to comment.