commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 58/61: libdiskfs: fix node leak in the name cache


From: Samuel Thibault
Subject: [hurd] 58/61: libdiskfs: fix node leak in the name cache
Date: Tue, 27 May 2014 08:32:15 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit b16f334192dbac002a33c31645e228d349de3c72
Author: Justus Winter <address@hidden>
Date:   Sat May 24 20:29:23 2014 +0200

    libdiskfs: fix node leak in the name cache
    
    * libdiskfs/name-cache.c (diskfs_check_lookup_cache): Release node
    reference in a special case of lookup failure.
---
 libdiskfs/name-cache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libdiskfs/name-cache.c b/libdiskfs/name-cache.c
index c113692..a212a6d 100644
--- a/libdiskfs/name-cache.c
+++ b/libdiskfs/name-cache.c
@@ -249,6 +249,7 @@ diskfs_check_lookup_cache (struct node *dir, const char 
*name)
                {
                  /* Lose */
                  pthread_mutex_unlock (&np->lock);
+                 diskfs_nrele (np);
                  return 0;
                }
            }

-- 
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]