aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
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/i386
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/i386')
-rw-r--r--sys/i386/linux/linux_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index ba106d554ee4..677a70f1e1e0 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -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);