aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-18 22:03:55 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-18 22:03:55 +0000
commitd5e3895ea4fe4ef9db8823774e07b4368180a23e (patch)
tree4c405cea52ad303af13a31edcb53c73dc815856b /sys/amd64/linux
parentd7e357f85c79f8c21dceac33461cec45d779b681 (diff)
downloadsrc-d5e3895ea4fe4ef9db8823774e07b4368180a23e.tar.gz
src-d5e3895ea4fe4ef9db8823774e07b4368180a23e.zip
linux: consistently use LFREEPATH instead of open-coding it
Notes
Notes: svn path=/head/; revision=364365
Diffstat (limited to 'sys/amd64/linux')
-rw-r--r--sys/amd64/linux/linux_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux/linux_machdep.c b/sys/amd64/linux/linux_machdep.c
index 654fefa02009..85ec7086bea6 100644
--- a/sys/amd64/linux/linux_machdep.c
+++ b/sys/amd64/linux/linux_machdep.c
@@ -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);