diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-30 06:17:48 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-04-01 06:30:13 +0300 |
commit | 0916749c079267aee2fa91989cea0e58857b0939 (patch) | |
tree | cb18a6fc2c433e7b261f353aba0b7bc958431661 /src/node_process_object.cc | |
parent | 1859769a1bdedc48841061ce45d91191334a9022 (diff) |
src: add missing uv_fs_req_cleanup()
This cleans up after the uv_fs_realpath() call a few lines up.
PR-URL: https://github.com/nodejs/node/pull/27004
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_process_object.cc')
-rw-r--r-- | src/node_process_object.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_process_object.cc b/src/node_process_object.cc index 0b97a5b2133..93193a18fcd 100644 --- a/src/node_process_object.cc +++ b/src/node_process_object.cc @@ -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(), |