diff options
author | 2014-07-12 18:51:10 +0000 | |
---|---|---|
committer | 2014-07-12 18:51:10 +0000 | |
commit | 23190ce18cf11db66d0b2c6366f6b624a5a4a17b (patch) | |
tree | a9a6dc30652d835cc7d91bfd33b8f665cdb989b1 | |
parent | add a size argument to free. will be used soon, but for now default to 0. (diff) | |
download | wireguard-openbsd-23190ce18cf11db66d0b2c6366f6b624a5a4a17b.tar.xz wireguard-openbsd-23190ce18cf11db66d0b2c6366f6b624a5a4a17b.zip |
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
-rw-r--r-- | share/man/man9/malloc.9 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 3c604f82568..7965f0ccbbb 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: malloc.9,v 1.55 2014/07/12 10:47:21 tedu Exp $ +.\" $OpenBSD: malloc.9,v 1.56 2014/07/12 18:51:10 tedu Exp $ .\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -44,7 +44,7 @@ .Ft void * .Fn mallocarray "size_t nmemb" "size_t size" "int type" "int flags" .Ft void -.Fn free "void *addr" "int type" +.Fn free "void *addr" "int type" "size_t size" .Sh DESCRIPTION The .Fn malloc @@ -66,6 +66,8 @@ function releases memory at address that was previously allocated by .Fn malloc for re-use. +The size of the object should be specified by +.Fa size . If .Fa addr is a null pointer, no action occurs. |