diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-14 11:20:58 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-14 11:20:58 +0000 |
| commit | b5c508fba33452c36601090d080ddc688efad870 (patch) | |
| tree | bf2ca7f3cb02a4ce4135d71c0382cffebecce4cb /lib/libc/stdlib | |
| parent | bd4bd019fbc1618b7547bdae3000cc03228becf1 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/getenv.3 | 4 | ||||
| -rw-r--r-- | lib/libc/stdlib/malloc.3 | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index f6d1209c79e6..4753dfb6c578 100644 --- a/lib/libc/stdlib/getenv.3 +++ b/lib/libc/stdlib/getenv.3 @@ -150,7 +150,9 @@ assigning a differently sized .Ar value to the same .Ar name -will result in a memory leak. The FreeBSD semantics for these functions +will result in a memory leak. The +.Fx +semantics for these functions (namely, that the contents of .Ar value are copied and that old values remain accessible indefinitely) make this diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 4f6b9ef5f13e..03feaa37a01b 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -123,7 +123,8 @@ The .Fn reallocf function call is identical to the realloc function call, except that it will free the passed pointer when the requested memory cannot be allocated. -This is a FreeBSD +This is a +.Fx specific API designed to ease the problems with traditional coding styles for realloc causing memory leaks in libraries. .Pp |
