From 0c709bf1093eb3e3a2535ee09725b7dd5b635c2f Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 23 Jul 2010 18:58:27 +0000 Subject: Eliminate a little bit of duplicated code. --- sys/amd64/linux32/linux32_machdep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/amd64') 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); } -- cgit v1.1