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/compat/svr4 | |
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/compat/svr4')
-rw-r--r-- | sys/compat/svr4/svr4_misc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index 7fae260..5a585cf 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -175,7 +175,6 @@ svr4_sys_execv(td, uap) free(path, M_TEMP); if (error == 0) error = kern_execve(td, &eargs, NULL); - exec_free_args(&eargs); return (error); } @@ -195,7 +194,6 @@ svr4_sys_execve(td, uap) free(path, M_TEMP); if (error == 0) error = kern_execve(td, &eargs, NULL); - exec_free_args(&eargs); return (error); } |