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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 22f0bf426ae955c58edb835d6be7be44af5c029d
Author: Justus Winter <[email protected]>
Date:   Tue May 20 16:17:17 2014 +0200

    term: fix memory leak
    
    I tested this change for some days and have not experienced any
    problems with it.
    
    * term/users.c (pi_destroy_hook): Fix memory leak.
---
 term/users.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/term/users.c b/term/users.c
index 97bc22c..9bd51d0 100644
--- a/term/users.c
+++ b/term/users.c
@@ -259,9 +259,7 @@ pi_destroy_hook (struct trivfs_protid *cred)
     {
       assert (((struct protid_hook *)cred->hook)->refcnt > 0);
       if (--((struct protid_hook *)cred->hook)->refcnt == 0)
-       /* XXX don't free for now, so we can try and catch a multiple-freeing
-          bug.  */
-       /* free (cred->hook) */;
+       free (cred->hook);
     }
   pthread_mutex_unlock (&global_lock);
 }

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

Reply via email to