diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1997-05-09 13:04:43 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1997-05-09 13:04:43 +0000 |
commit | 7a95f810ec322d47a10ba70716e84987b0517d1a (patch) | |
tree | a7499ec2e7a5713297319a9692ce1593602a220c /sys/nfsclient | |
parent | 68713f97a19a71e3285b6a6e38429add10b413a8 (diff) | |
download | src-7a95f810ec322d47a10ba70716e84987b0517d1a.tar.gz src-7a95f810ec322d47a10ba70716e84987b0517d1a.zip |
Fix memory leak caused by the fact that the directory offset cookies and
the sillyrename information are stored in the same place.
Notes
Notes:
svn path=/head/; revision=25610
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_node.c b/sys/nfsclient/nfs_node.c index 525031afa40a..79c013943190 100644 --- a/sys/nfsclient/nfs_node.c +++ b/sys/nfsclient/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 |