summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:51:11 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-12 18:51:11 +0000
commit2f8292fd0f0d4f998a8d07123af9c41efea65952 (patch)
tree0deb094ba51f1b2d16e779a57c12f61dd21a1968 /share
parent9355adab6702f4798111e38a2e7e7be541270937 (diff)
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/malloc.96
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.