From d5e3895ea4fe4ef9db8823774e07b4368180a23e Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Tue, 18 Aug 2020 22:03:55 +0000 Subject: linux: consistently use LFREEPATH instead of open-coding it --- sys/i386/linux/linux_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/i386/linux/linux_machdep.c') 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); -- cgit v1.2.3