Index: kern_acct.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_acct.c,v
retrieving revision 1.50
diff -u -r1.50 kern_acct.c
--- kern_acct.c	12 Sep 2002 05:00:32 -0000	1.50
+++ kern_acct.c	13 Sep 2002 12:18:58 -0000
@@ -282,10 +282,10 @@
 	/*
 	 * Write the accounting information to the file.
 	 */
-	VOP_LEASE(vp, td, acctcred, LEASE_WRITE);
 	uc = crhold(acctcred);
 	vref(vp);
 	mtx_unlock(&acct_mtx);
+	VOP_LEASE(vp, td, uc, LEASE_WRITE);
 	ret = vn_rdwr(UIO_WRITE, vp, (caddr_t)&acct, sizeof (acct),
 	    (off_t)0, UIO_SYSSPACE, IO_APPEND|IO_UNIT, uc, NOCRED,
 	    (int *)0, td);
