Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 21:48:45 +0000 (UTC)
From:      Jamie Gritton <jamie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212072 - head/lib/libjail
Message-ID:  <201008312148.o7VLmjqn042524@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jamie
Date: Tue Aug 31 21:48:45 2010
New Revision: 212072
URL: http://svn.freebsd.org/changeset/base/212072

Log:
  Make it clear in the example that jailparam_export's return value
  should be freed.
  
  MFC after:	3 days

Modified:
  head/lib/libjail/jail.3

Modified: head/lib/libjail/jail.3
==============================================================================
--- head/lib/libjail/jail.3	Tue Aug 31 20:56:18 2010	(r212071)
+++ head/lib/libjail/jail.3	Tue Aug 31 21:48:45 2010	(r212072)
@@ -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(&params[1], "host.hostnam
 jailparam_get(params, 2, 0);
 hostname = jailparam_export(&params[1]);
 jailparam_free(params, 2);
+...
+free(hostname);
 .Ed
 .Sh ERRORS
 The



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008312148.o7VLmjqn042524>