commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 05/12: nfs: fix deallocation of struct node.


From: Samuel Thibault
Subject: [hurd] 05/12: nfs: fix deallocation of struct node.
Date: Tue, 23 Feb 2016 23:53:24 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 691251adb7a1eaae7eda7601a1f05d4ff819dd64
Author: Flavio Cruz <address@hidden>
Date:   Mon Feb 15 19:32:02 2016 -0500

    nfs: fix deallocation of struct node.
    
    * 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);
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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