mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
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:
parent
7565d2a862
commit
a601b74d31
@ -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]
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user