commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 02/26: Fix memory leak in libnetfs


From: Samuel Thibault
Subject: [hurd] 02/26: Fix memory leak in libnetfs
Date: Sat, 02 Nov 2013 14:44:43 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 98b6f846b628e858acbae9258bac78cf54126d27
Author: Richard Braun <address@hidden>
Date:   Fri Oct 4 20:18:24 2013 +0200

    Fix memory leak in libnetfs
    
    * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Properly jump to the
    single exit point if fshelp_fetch_root fails.
---
 libnetfs/dir-lookup.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 10ea2d0..74351fa 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -277,15 +277,13 @@ netfs_S_dir_lookup (struct protid *diruser,
 
          if (error != ENOENT)
            {
-             netfs_nrele (dnp);
-             netfs_nput (np);
              *retry_port_type = MACH_MSG_TYPE_MOVE_SEND;
              if (!lastcomp && !error)
                {
                  strcat (retry_name, "/");
                  strcat (retry_name, nextname);
                }
-             return error;
+             goto out;
            }
 
          /* ENOENT means there was a hiccup, and the translator vanished

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