summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2009-12-12 21:59:30 +0000
committerjamie <jamie@FreeBSD.org>2009-12-12 21:59:30 +0000
commit8a52668e18e6e74c298b3a99c3e6f75a5663bf0f (patch)
tree17fe7827c6676f2f911b399cb67f9e19ae4ac688 /usr.sbin
parentab37c8336417bc9a5b4657bd0a95260ed6c383b9 (diff)
downloadFreeBSD-src-8a52668e18e6e74c298b3a99c3e6f75a5663bf0f.zip
FreeBSD-src-8a52668e18e6e74c298b3a99c3e6f75a5663bf0f.tar.gz
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 MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/jls/jls.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/usr.sbin/jls/jls.c b/usr.sbin/jls/jls.c
index 0661ee3..3f4800c 100644
--- a/usr.sbin/jls/jls.c
+++ b/usr.sbin/jls/jls.c
@@ -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);
}
OpenPOWER on IntegriCloud