diff options
author | kib <kib@FreeBSD.org> | 2008-07-25 11:55:32 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-07-25 11:55:32 +0000 |
commit | e2333a32b65b97306f50a127e5d8d26fe18dd1ed (patch) | |
tree | 3a6641cdf54739fc123a6c5446ff0abae9525258 /sys/kern/kern_exec.c | |
parent | a0a58ba0998e1106f93f341772b64e5755b5d76f (diff) | |
download | FreeBSD-src-e2333a32b65b97306f50a127e5d8d26fe18dd1ed.zip FreeBSD-src-e2333a32b65b97306f50a127e5d8d26fe18dd1ed.tar.gz |
Call pargs_drop() unconditionally in do_execve(), the function correctly
handles the NULL argument.
Make pargs_free() static.
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index e31ca37..b4f3ccc 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -832,10 +832,8 @@ done1: crfree(tracecred); #endif vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY); - if (oldargs != NULL) - pargs_drop(oldargs); - if (newargs != NULL) - pargs_drop(newargs); + pargs_drop(oldargs); + pargs_drop(newargs); if (oldsigacts != NULL) sigacts_free(oldsigacts); |