aboutsummaryrefslogtreecommitdiffstats
path: root/include/fstream
diff options
context:
space:
mode:
Diffstat (limited to 'include/fstream')
-rw-r--r--include/fstream1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fstream b/include/fstream
index 332b4747c1af..711e484e2dcf 100644
--- a/include/fstream
+++ b/include/fstream
@@ -702,6 +702,7 @@ basic_filebuf<_CharT, _Traits>::close()
__file_ = 0;
else
__rt = 0;
+ setbuf(0, 0);
}
return __rt;
}