summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2007-04-10 11:21:18 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2007-04-10 11:21:18 +0000
commitcdf53d249c1ea10520da8d35202b0a2dca32c08d (patch)
tree339c9443b2bdd5cf9204447288e68fc7777672b5 /sys
parent594a39bcbdd99a447fe0cd798b8826b6d6d0ed2b (diff)
Fix yet another vnode leak. If relookup() succeeds, we no longer need
the compensation acquired before ufs_checkpath(). OK tom@ mickey@ beck@
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 18de827db84..f87fcc46ed8 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_vnops.c,v 1.75 2007/04/02 10:57:17 pedro Exp $ */
+/* $OpenBSD: ufs_vnops.c,v 1.76 2007/04/10 11:21:17 pedro Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */
/*
@@ -944,6 +944,7 @@ abortit:
panic("ufs_rename: lost to startdir");
if ((error = relookup(tdvp, &tvp, tcnp)) != 0)
goto out;
+ vrele(tdvp); /* relookup() acquired a reference */
dp = VTOI(tdvp);
xp = NULL;
if (tvp)