diff --git a/util/env_posix.cc b/util/env_posix.cc index 8d84ac7..8327978 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -230,7 +230,7 @@ class PosixWritableFile : public WritableFile { ~PosixWritableFile() { if (fd_ >= 0) { // Ignoring any potential errors - FlushBuffered(); + Close(); } }