diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/fs.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/fs.lua b/lua/nvim-lsp-installer/fs.lua index 0cfaceca..b96d0bbf 100644 --- a/lua/nvim-lsp-installer/fs.lua +++ b/lua/nvim-lsp-installer/fs.lua @@ -41,7 +41,9 @@ end function M.fstat(path) local fd = assert(uv.fs_open(path, "r", 438)) - return assert(uv.fs_fstat(fd)) + local fstat = assert(uv.fs_fstat(fd)) + assert(uv.fs_close(fd)) + return fstat end return M |
