diff options
author | jhb <jhb@FreeBSD.org> | 2006-02-06 22:06:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-02-06 22:06:54 +0000 |
commit | ae432f93f28bc2a60c708a33b77ad08e34501984 (patch) | |
tree | e021a567f29f575137e73762ca951faf54b3cfd1 /sys/i386/ibcs2 | |
parent | 1f0c541bd133ce3b047f18de07fa40324097bfad (diff) | |
download | FreeBSD-src-ae432f93f28bc2a60c708a33b77ad08e34501984.zip FreeBSD-src-ae432f93f28bc2a60c708a33b77ad08e34501984.tar.gz |
- Always call exec_free_args() in kern_execve() instead of doing it in all
the callers if the exec either succeeds or fails early.
- Move the code to call exit1() if the exec fails after the vmspace is
gone to the bottom of kern_execve() to cut down on some code duplication.
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_misc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c index e5ecace..c4efc02 100644 --- a/sys/i386/ibcs2/ibcs2_misc.c +++ b/sys/i386/ibcs2/ibcs2_misc.c @@ -207,7 +207,6 @@ ibcs2_execv(td, uap) free(path, M_TEMP); if (error == 0) error = kern_execve(td, &eargs, NULL); - exec_free_args(&eargs); return (error); } @@ -227,7 +226,6 @@ ibcs2_execve(td, uap) free(path, M_TEMP); if (error == 0) error = kern_execve(td, &eargs, NULL); - exec_free_args(&eargs); return (error); } |