linux: consistently use LFREEPATH instead of open-coding it

This commit is contained in:
Mateusz Guzik 2020-08-18 22:03:55 +00:00
parent d7e357f85c
commit d5e3895ea4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364365
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);