* libio/genops.c (_IO_unbuffer_write): Don't always free the
commit7876272372451b1cb0a7da9cfbbf9027550bccce
authorUlrich Drepper <drepper@redhat.com>
Wed, 11 Jan 2006 07:55:51 +0000 (11 07:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 11 Jan 2006 07:55:51 +0000 (11 07:55 +0000)
tree40e56b96b0fe399fd0c7165e47d40241ae1a2ab8
parent3370f2bd3d3b317f57b3fabf1bd8fdfafec75fa9
* libio/genops.c (_IO_unbuffer_write): Don't always free the

buffer.  This is not necessary except in debug mode.  If we don't
free the buffer but the FILE structure to a list.
(buffer_free): New function.  Free buffers or tell _IO_unbuffer_write
to do so.
* libio/libio.h (struct _IO_FILE): Add new members to keep track
of which buffers have to be freed.
ChangeLog
libio/genops.c
libio/libio.h