summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-07-04 17:39:46 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-07-04 17:39:46 +0000
commit7a6913c4d70ef114dba265c60e0f76a01ec2d535 (patch)
tree214f968a85e47194a74e310b00b74ce41a0f81dd /share/man
parent60ce41b66121f38843b60b67a6390ef6e0d758de (diff)
free(null) works
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/malloc.97
1 files changed, 5 insertions, 2 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9
index 67968dd15de..8de3d269da8 100644
--- a/share/man/man9/malloc.9
+++ b/share/man/man9/malloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: malloc.9,v 1.48 2013/06/04 19:27:09 schwarze Exp $
+.\" $OpenBSD: malloc.9,v 1.49 2013/07/04 17:39:45 tedu Exp $
.\" $NetBSD: malloc.9,v 1.2 1996/10/30 05:29:54 lukem Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 4 2013 $
+.Dd $Mdocdate: July 4 2013 $
.Dt MALLOC 9
.Os
.Sh NAME
@@ -54,6 +54,9 @@ releases memory at address
that was previously allocated by
.Fn malloc
for re-use.
+If
+.Fa addr
+is a null pointer, no action occurs.
.Pp
The
.Fa flags