diff options
author | jamie <jamie@FreeBSD.org> | 2010-08-31 21:48:45 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2010-08-31 21:48:45 +0000 |
commit | d569ac94f2fbab56ddd0335c70329ce12b174cf2 (patch) | |
tree | 21c371882a81fa56e1f4f117ff5b874065015155 /lib/libjail/jail.3 | |
parent | f48233ae002101f8e12bd2995152b6e3b1df86ed (diff) | |
download | FreeBSD-src-d569ac94f2fbab56ddd0335c70329ce12b174cf2.zip FreeBSD-src-d569ac94f2fbab56ddd0335c70329ce12b174cf2.tar.gz |
Make it clear in the example that jailparam_export's return value
should be freed.
MFC after: 3 days
Diffstat (limited to 'lib/libjail/jail.3')
-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 4207b02..ee80e01 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 |