]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
In preparation for fixing BZ#16734, fix failure in misc/tst-error1-mem
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Sat, 8 Aug 2015 23:27:58 +0000 (16:27 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Sat, 8 Aug 2015 23:27:58 +0000 (16:27 -0700)
when _G_HAVE_MMAP is turned off.

ChangeLog
libio/genops.c

index 64bbb2b626a3838e6f4239ad66cb7d6585dffc29..0e7b31996df368225ad8bda2dbdd299c98a2ed4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       [BZ #16734]
+       * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
+
 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        [BZ #17905]
index 0f5e80064e0f9053ecd08ba7cb8f1fc1d1f6a441..e13b3d139023605a664985e901de74211ea58729 100644 (file)
@@ -977,6 +977,9 @@ _IO_unbuffer_all (void)
 
          _IO_SETBUF (fp, NULL, 0);
 
+         if (fp->_mode > 0)
+           _IO_wsetb (fp, NULL, NULL, 0);
+
 #ifdef _IO_MTSAFE_IO
          if (cnt < MAXTRIES && fp->_lock != NULL)
            _IO_lock_unlock (*fp->_lock);