summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-29 23:17:48 -0400
committercjihrig <cjihrig@gmail.com>2019-03-31 23:30:13 -0400
commit0916749c079267aee2fa91989cea0e58857b0939 (patch)
treecb18a6fc2c433e7b261f353aba0b7bc958431661 /src
parent1859769a1bdedc48841061ce45d91191334a9022 (diff)
downloadandroid-node-v8-0916749c079267aee2fa91989cea0e58857b0939.tar.gz
android-node-v8-0916749c079267aee2fa91989cea0e58857b0939.tar.bz2
android-node-v8-0916749c079267aee2fa91989cea0e58857b0939.zip
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')
-rw-r--r--src/node_process_object.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_process_object.cc b/src/node_process_object.cc
index 0b97a5b213..93193a18fc 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(),