]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
manual: clarify buffer behavior in getline [BZ #5666]
authorDavid Svoboda <svoboda@cert.org>
Wed, 2 Apr 2014 09:13:02 +0000 (05:13 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 3 Apr 2014 22:23:57 +0000 (18:23 -0400)
commit1c21d115e3e47cd66007341de4bae5c4b0a2d547
treea5fa2bf5c51461c06b2438ae16580aa3bd324bc4
parentfcccd51286acbf9c19ac57ab7143e257d58323fd
manual: clarify buffer behavior in getline [BZ #5666]

If the user has requested automatic buffer creation, getline may create
it and not free things when an error occurs.  That means the user is
always responsible for calling free() regardless of the return value.

The current documentation does not explicitly cover this which leaves it
slightly ambiguous to the reader.  So clarify things.

URL: https://sourceware.org/bugzilla/show_bug.cgi?id=5666
ChangeLog
manual/stdio.texi