summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorGiorgos Keramidas <keramida@FreeBSD.org>2002-06-06 22:11:19 +0000
committerGiorgos Keramidas <keramida@FreeBSD.org>2002-06-06 22:11:19 +0000
commitf2572d955f0d4a3c2de32646863bc78d972d0080 (patch)
tree2b8b7f87e5c31d8b24b441f51f42f84efb02de71 /lib/libc/stdlib/malloc.3
parentba2cd77062f66c90708ce09e4158f7e6f17a3514 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r--lib/libc/stdlib/malloc.35
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 328ee1a4d62d..65173cf575c9 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -117,8 +117,9 @@ is returned and
the memory referenced by
.Fa ptr
is valid and unchanged.
-If memory can be allocated, a pointer to the newly allocated portion of
-the memory is returned.
+If memory can be allocated, the memory referenced by
+.Fa ptr
+is freed and a pointer to the newly allocated memory is returned.
Note that this may be different from the value
passed as
.Fa ptr .