diff options
author | Jamie Gritton <jamie@FreeBSD.org> | 2010-08-31 21:48:45 +0000 |
---|---|---|
committer | Jamie Gritton <jamie@FreeBSD.org> | 2010-08-31 21:48:45 +0000 |
commit | fa04d5d393f1fe9733cb8dc9c7f66700a28985dc (patch) | |
tree | 21c371882a81fa56e1f4f117ff5b874065015155 /lib | |
parent | 175f87424f39f89d61e802cd9b7546a5dc9b0af1 (diff) | |
download | src-fa04d5d393f1fe9733cb8dc9c7f66700a28985dc.tar.gz src-fa04d5d393f1fe9733cb8dc9c7f66700a28985dc.zip |
Make it clear in the example that jailparam_export's return value
should be freed.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=212072
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libjail/jail.3 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libjail/jail.3 b/lib/libjail/jail.3 index 4207b0253a73..ee80e014d18f 100644 --- a/lib/libjail/jail.3 +++ b/lib/libjail/jail.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 24, 2009 +.Dd August 31, 2010 .Dt JAIL 3 .Os .Sh NAME @@ -248,6 +248,8 @@ jailparam_init(¶ms[1], "host.hostname"); jailparam_get(params, 2, 0); hostname = jailparam_export(¶ms[1]); jailparam_free(params, 2); +... +free(hostname); .Ed .Sh ERRORS The |