commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 07/08: Fix memory leak in libdiskfs


From: Samuel Thibault
Subject: [hurd] 07/08: Fix memory leak in libdiskfs
Date: Sat, 28 Sep 2013 14:26:46 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit a81c0c28ea606b0d0a2ad5eeb74071c746b7cdeb
Author: Richard Braun <address@hidden>
Date:   Fri Sep 27 20:49:45 2013 +0200

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

diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 15a9b0c..86116e3 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -294,8 +294,6 @@ diskfs_S_dir_lookup (struct protid *dircred,
 
          if (error != ENOENT)
            {
-             diskfs_nrele (dnp);
-             diskfs_nput (np);
              *returned_port_poly = MACH_MSG_TYPE_MOVE_SEND;
              if (!lastcomp && !error)
                {
@@ -303,7 +301,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
                  *end++ = '/';
                  strcpy (end, nextname);
                }
-             return error;
+             goto out;
            }
 
          /* ENOENT means there was a hiccup, and the translator

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