Date: Sun, 20 Dec 2009 04:45:32 +0000 (UTC) From: Jamie Gritton <jamie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r200749 - stable/8/usr.sbin/jls Message-ID: <200912200445.nBK4jWua053058@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jamie Date: Sun Dec 20 04:45:32 2009 New Revision: 200749 URL: http://svn.freebsd.org/changeset/base/200749 Log: MFC r200449: Don't free jail parameter values after printing them - jail_param_get expects them to be there for the next jail in the list. PR: bin/141359 Modified: stable/8/usr.sbin/jls/jls.c Directory Properties: stable/8/usr.sbin/jls/ (props changed) Modified: stable/8/usr.sbin/jls/jls.c ============================================================================== --- stable/8/usr.sbin/jls/jls.c Sun Dec 20 02:35:10 2009 (r200748) +++ stable/8/usr.sbin/jls/jls.c Sun Dec 20 04:45:32 2009 (r200749) @@ -425,11 +425,6 @@ print_jail(int pflags, int jflags) if (params[i].jp_flags & JP_USER) free(param_values[i]); } - for (i = 0; i < nparams; i++) - if (!(params[i].jp_flags & JP_RAWVALUE)) { - free(params[i].jp_value); - params[i].jp_value = NULL; - } return (jid); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912200445.nBK4jWua053058>