bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] nfs: fix deallocation of struct node.


From: Flavio Cruz
Subject: [PATCH] nfs: fix deallocation of struct node.
Date: Mon, 15 Feb 2016 19:32:02 -0500
User-agent: Mutt/1.5.24 (2015-08-30)

* nfs/cache.c: Do not free np->nn since np and np->nn are being
allocated contiguously.
---
 nfs/cache.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nfs/cache.c b/nfs/cache.c
index 4719ae3..b48152e 100644
--- a/nfs/cache.c
+++ b/nfs/cache.c
@@ -158,7 +158,6 @@ netfs_node_norefs (struct node *np)
       hurd_ihash_locp_remove (&nodehash, np->nn->slot);
       if (np->nn->dtrans == SYMLINK)
        free (np->nn->transarg.name);
-      free (np->nn);
       free (np);
     }
 }
-- 
2.6.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]