]> git.ipfire.org Git - thirdparty/man-pages.git/commit
alloca.3: Prevent any misunderstanding about when allocated memory is released
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Oct 2018 12:31:32 +0000 (14:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Oct 2018 12:37:22 +0000 (14:37 +0200)
commit49d83458f341c51db45ca30bcd6b35e8189e18d3
treeb86b41104f5362b19d3ba36139f0cc7f203cc806
parentc9a35b01a1983ff9277202f0c8e2975b2e57ac02
alloca.3: Prevent any misunderstanding about when allocated memory is released

Perhaps some people might misunderstand memory allocated by
alloca() to be like other memory allocated on the stack: that when
the allocation (or the pointer to the allocation) goes out of
scope, the memory is freed. Add some text to prevent that
misunderstanding.

Reported-by: Robin Kuzmin <kuzmin.robin@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/alloca.3