summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-07-23 18:58:27 +0000
committeralc <alc@FreeBSD.org>2010-07-23 18:58:27 +0000
commit0c709bf1093eb3e3a2535ee09725b7dd5b635c2f (patch)
tree519e37194477b3fd615f87f06efcd3d61f25ce52 /sys/amd64
parent33843d3a844a40bffb8c41095c5ba177ffcc9503 (diff)
downloadFreeBSD-src-0c709bf1093eb3e3a2535ee09725b7dd5b635c2f.zip
FreeBSD-src-0c709bf1093eb3e3a2535ee09725b7dd5b635c2f.tar.gz
Eliminate a little bit of duplicated code.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/linux32/linux32_machdep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index 22ca3cb..b866929 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -200,9 +200,7 @@ linux_exec_copyin_args(struct image_args *args, char *fname,
return (0);
err_exit:
- kmem_free_wakeup(exec_map, (vm_offset_t)args->buf,
- PATH_MAX + ARG_MAX + MAXSHELLCMDLEN);
- args->buf = NULL;
+ exec_free_args(args);
return (error);
}
OpenPOWER on IntegriCloud