summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_node.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-05-09 13:04:43 +0000
committerdfr <dfr@FreeBSD.org>1997-05-09 13:04:43 +0000
commit5a3da545f6ed278467b68b3b902c0fa8fcd113a1 (patch)
tree4dd2cd516bfe177fee9e709a32400ec9b7ddcb14 /sys/nfs/nfs_node.c
parent2b17ef6899aa09fa383a9e0b48a836cf1fb59768 (diff)
downloadFreeBSD-src-5a3da545f6ed278467b68b3b902c0fa8fcd113a1.zip
FreeBSD-src-5a3da545f6ed278467b68b3b902c0fa8fcd113a1.tar.gz
Fix memory leak caused by the fact that the directory offset cookies and
the sillyrename information are stored in the same place.
Diffstat (limited to 'sys/nfs/nfs_node.c')
-rw-r--r--sys/nfs/nfs_node.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c
index 525031a..79c0139 100644
--- a/sys/nfs/nfs_node.c
+++ b/sys/nfs/nfs_node.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_node.c 8.6 (Berkeley) 5/22/95
- * $Id$
+ * $Id: nfs_node.c,v 1.16 1997/02/22 09:42:36 peter Exp $
*/
@@ -199,11 +199,11 @@ nfs_inactive(ap)
np = VTONFS(ap->a_vp);
if (prtactive && ap->a_vp->v_usecount != 0)
vprint("nfs_inactive: pushing active", ap->a_vp);
- if (ap->a_vp->v_type != VDIR)
+ if (ap->a_vp->v_type != VDIR) {
sp = np->n_sillyrename;
- else
+ np->n_sillyrename = (struct sillyrename *)0;
+ } else
sp = (struct sillyrename *)0;
- np->n_sillyrename = (struct sillyrename *)0;
if (sp) {
/*
* Remove the silly file that was rename'd earlier
OpenPOWER on IntegriCloud