getpwent_r(3) needs gr->gr_mem to be freed, but that's not documented
Alejandro Colomar
alx@kernel.org
Sun Sep 28 20:26:30 GMT 2025
Hi!
Another thing I realized about getpwent_r(3) et al. is that gr->gr_mem
is allocated by the function, but is expected to be freed by the caller.
I didn't find this documented, neither in the manual page nor in the
glibc manual. Is it documented but I missed it? Or did I misunderstand
something? Or is it just that nobody documented it?
Have a lovely night!
Alex
--
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250928/5377084f/attachment.sig>
More information about the Libc-alpha
mailing list