aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--butl/fdstream2
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/fdstream b/butl/fdstream
index ac4500a..3f96f57 100644
--- a/butl/fdstream
+++ b/butl/fdstream
@@ -103,7 +103,7 @@ namespace butl
ofdstream (): std::ostream (&buf_) {}
ofdstream (int fd): fdstream_base (fd), std::ostream (&buf_) {}
- void close () {buf_.close ();}
+ void close () {flush (); buf_.close ();}
void open (int fd) {buf_.open (fd);}
bool is_open () const {return buf_.is_open ();}
};