linux: consistently use LFREEPATH instead of open-coding it
This commit is contained in:
parent
d7e357f85c
commit
d5e3895ea4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364365
@ -104,7 +104,7 @@ linux_execve(struct thread *td, struct linux_execve_args *args)
|
||||
|
||||
error = exec_copyin_args(&eargs, path, UIO_SYSSPACE, args->argp,
|
||||
args->envp);
|
||||
free(path, M_TEMP);
|
||||
LFREEPATH(path);
|
||||
if (error == 0)
|
||||
error = linux_common_execve(td, &eargs);
|
||||
return (error);
|
||||
|
@ -71,7 +71,7 @@ linux_execve(struct thread *td, struct linux_execve_args *uap)
|
||||
|
||||
error = exec_copyin_args(&eargs, path, UIO_SYSSPACE, uap->argp,
|
||||
uap->envp);
|
||||
free(path, M_TEMP);
|
||||
LFREEPATH(path);
|
||||
if (error == 0)
|
||||
error = linux_common_execve(td, &eargs);
|
||||
return (error);
|
||||
|
@ -108,7 +108,7 @@ linux_execve(struct thread *td, struct linux_execve_args *args)
|
||||
|
||||
error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE,
|
||||
args->argp, args->envp);
|
||||
free(newpath, M_TEMP);
|
||||
LFREEPATH(newpath);
|
||||
if (error == 0)
|
||||
error = linux_common_execve(td, &eargs);
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user