This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5666] when getline fails it still allocates a buffer
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Mar 2008 18:35:13 -0000
- Subject: [Bug libc/5666] when getline fails it still allocates a buffer
- References: <20080124205922.5666.werner_hahn@yahoo.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2008-03-04 18:35 -------
There is nothing wrong with the implementation. The buffer, when allocated, is
always the callers problem. The whole concept of getline is to reuse buffers.
We do not want the getline/getdelim function arbitrarily free the buffer.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5666
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.