All of lore.kernel.org
 help / color / mirror / Atom feed
* should free() refer to posix_memalign?
@ 2021-10-08 11:19 Jonny Grant
  2021-10-08 12:30 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 7+ messages in thread
From: Jonny Grant @ 2021-10-08 11:19 UTC (permalink / raw)
  To: linux-man

Hello

https://man7.org/linux/man-pages/man3/malloc.3.html

"The free() function frees the memory space pointed to by ptr,
 which must have been returned by a previous call to malloc(),
 calloc(), or realloc().  "


Could this list refer to the other ways memory can be allocated too? free() accepts other memory.
posix_memalign
aligned_alloc
memalign
valloc
pvalloc
reallocarray

That would be changing it to say :-

"The free() function frees the memory space pointed to by ptr,
 which must have been returned by a previous call to malloc(),
 calloc(), realloc(), posix_memalign(), aligned_alloc(), memalign(), valloc(), reallocarray() or pvalloc()"

https://man7.org/linux/man-pages/man3/posix_memalign.3.html

Kind regards
Jonny

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-09 20:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 11:19 should free() refer to posix_memalign? Jonny Grant
2021-10-08 12:30 ` Alejandro Colomar (man-pages)
2021-10-08 13:28   ` Jonny Grant
2021-10-08 14:58     ` Alejandro Colomar (man-pages)
2021-10-08 17:57       ` Jonny Grant
2021-10-09 18:39         ` Alejandro Colomar (man-pages)
2021-10-09 20:15           ` Jonny Grant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.