diff --git a/base/file_utils.cc b/base/file_utils.cc index b8741d2..7173000 100644 --- a/base/file_utils.cc +++ b/base/file_utils.cc @@ -151,6 +151,8 @@ file_utils::zero_superblock(std::string const &path) memset(buffer, 0, SUPERBLOCK_SIZE); if (::write(fd, buffer, SUPERBLOCK_SIZE) != SUPERBLOCK_SIZE) throw runtime_error("couldn't zero superblock"); + + ::close(fd); } //----------------------------------------------------------------