Fix memory leak caused by the fact that the directory offset cookies and
the sillyrename information are stored in the same place.
This commit is contained in:
parent
68713f97a1
commit
7a95f810ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25610
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user