From 7586078d0ac416245a063ff06219d3548cb3b1b5 Mon Sep 17 00:00:00 2001 From: Ivo Georgiev Date: Fri, 15 Jan 2016 16:54:29 +0200 Subject: [PATCH] Ensure we close FD on Windows --- atom/common/asar/archive.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/common/asar/archive.cc b/atom/common/asar/archive.cc index ebb80cc2c485..b444377dd3a0 100644 --- a/atom/common/asar/archive.cc +++ b/atom/common/asar/archive.cc @@ -129,6 +129,9 @@ Archive::Archive(const base::FilePath& path) } Archive::~Archive() { +#if defined(OS_WIN) + _close(fd_) +#endif } bool Archive::Init() {