diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-01 17:55:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-01 17:55:37 +0100 |
commit | 868abdea9811937039a1df84b15ad17f9b9c7a27 (patch) | |
tree | a7b98560d5eb155724663c4345283afbd68faa79 /src/malloc | |
parent | m (diff) | |
download | slibc-868abdea9811937039a1df84b15ad17f9b9c7a27.tar.gz slibc-868abdea9811937039a1df84b15ad17f9b9c7a27.tar.bz2 slibc-868abdea9811937039a1df84b15ad17f9b9c7a27.tar.xz |
extension: free will perserve errno
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c index 6d1f220..9b45607 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -254,6 +254,8 @@ void* realloc(void* ptr, size_t size) /** * Free a memory allocation. + * + * As a slibc extension, `errno` is guaranteed not to be set. * * @etymology (Free) allocated memory. * @@ -277,6 +279,8 @@ void free(void* ptr) * 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. |