In preparation for fixing BZ#16734, fix failure in misc/tst-error1-mem

when _G_HAVE_MMAP is turned off.
This commit is contained in:
Paul Pluzhnikov 2015-08-08 16:27:58 -07:00
parent 7565d2a862
commit a601b74d31
2 changed files with 8 additions and 0 deletions

View File

@ -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]

View 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);