From fbdead7f35916837cb9ac2444e61640a1559a5db Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 29 Mar 2019 23:17:48 -0400 Subject: [PATCH] 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 Reviewed-By: Richard Lau Signed-off-by: Beth Griggs --- src/node_process_object.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_process_object.cc b/src/node_process_object.cc index 0b97a5b21330cf..93193a18fcdbee 100644 --- a/src/node_process_object.cc +++ b/src/node_process_object.cc @@ -193,6 +193,7 @@ MaybeLocal CreateProcessObject( CHECK_NOT_NULL(req.ptr); exec_path = std::string(static_cast(req.ptr)); } + uv_fs_req_cleanup(&req); #endif process ->Set(env->context(),