From 868abdea9811937039a1df84b15ad17f9b9c7a27 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 Jan 2016 17:55:37 +0100 Subject: extension: free will perserve errno MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/malloc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/malloc.h') diff --git a/include/malloc.h b/include/malloc.h index 7478175..1735f46 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -172,6 +172,8 @@ void* realloc(void*, size_t) /** * Free a memory allocation. * + * As a slibc extension, `errno` is guaranteed not to be set. + * * @etymology (Free) allocated memory. * * @param ptr Pointer to the beginning of the memory allocation. @@ -191,6 +193,8 @@ void free(void*) * This function uses variadic arguments because there * there are multiple conflicting specifications for `cfree`. * + * As a slibc extension, `errno` is guaranteed not to be set. + * * @param ptr Pointer to the beginning of the memory allocation. * The process may crash if it does not point to the * beginning of a memory allocation on the heap. -- cgit v1.2.3-70-g09d2