From bb98f271815f6f1357c3c7178a3367d439c44029 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 28 Mar 2019 16:41:37 -0400 Subject: [PATCH] src: check uv_fs_close() return value Coverity was complaining about not checking the return value. PR-URL: https://github.com/nodejs/node/pull/26967 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Ben Noordhuis --- src/module_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 622deed45ff668..b11a4fe898ab81 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -494,7 +494,7 @@ inline Maybe OpenDescriptor(const std::string& path) { inline void CloseDescriptor(uv_file fd) { uv_fs_t fs_req; - uv_fs_close(nullptr, &fs_req, fd, nullptr); + CHECK_EQ(0, uv_fs_close(nullptr, &fs_req, fd, nullptr)); uv_fs_req_cleanup(&fs_req); }