[PATCH] getline.3: wfix.

enh
2022-07-29T20:22:39Z

Clarify in the RETURN VALUE section that it's necessary to free the
buffer, since at least one person missed this up at the start of the
DESCRIPTION.

Signed-off-by: Elliott Hughes <enh@google.com>
---
man3/getline.3 | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/man3/getline.3 b/man3/getline.3
index 8b7357825..bad30956c 100644
--- a/man3/getline.3
+++ b/man3/getline.3
@@ -99,6 +99,10 @@ condition).
In the event of a failure,
.I errno
is set to indicate the error.
+If
+.I "*lineptr"
+was set to NULL before the call, then the buffer should be freed by the
+user program even on failure.
.SH ERRORS
.TP
.B EINVAL
--
2.37.1.455.g008518b4e5-goog