summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2000-08-03 20:41:05 +0000
committerthorpej <thorpej@NetBSD.org>2000-08-03 20:41:05 +0000
commit7cc27a88c07d2bff3520fe4c976cd47d471fdd68 (patch)
treefc3130f25cd3ceca63f9441c4f642eda5e925540 /sys/kern/exec_script.c
parent243d61d41b01daf968e04e7222633b218865935b (diff)
Convert namei pathname buffer allocation to use the pool allocator.
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index e9592317b65..d5ff86bef1a 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_script.c,v 1.25 2000/08/01 04:57:29 thorpej Exp $ */
+/* $NetBSD: exec_script.c,v 1.26 2000/08/03 20:41:21 thorpej Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -252,7 +252,7 @@ check_shell:
}
/* free the old pathname buffer */
- FREE(oldpnbuf, M_NAMEI);
+ PNBUF_PUT(oldpnbuf);
epp->ep_flags |= (EXEC_HASARGL | EXEC_SKIPARG);
epp->ep_fa = shellargp;
@@ -288,7 +288,7 @@ fail:
vput(scriptvp);
}
- FREE(epp->ep_ndp->ni_cnd.cn_pnbuf, M_NAMEI);
+ PNBUF_PUT(epp->ep_ndp->ni_cnd.cn_pnbuf);
/* free the fake arg list, because we're not returning it */
if ((tmpsap = shellargp) != NULL) {