[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
- [hurd] branch upstream updated (f351440 -> 223b7da), Samuel Thibault, 2013/09/28
- [hurd] 01/08: Update mailing lists, Samuel Thibault, 2013/09/28
- [hurd] 08/08: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2013/09/28
- [hurd] 06/08: GNU Hurd 0.5., Samuel Thibault, 2013/09/28
- [hurd] 04/08: Generate ChangeLog files for distributions., Samuel Thibault, 2013/09/28
- [hurd] 05/08: Decouple the Hurd version from the package version., Samuel Thibault, 2013/09/28
- [hurd] 07/08: Fix memory leak in libdiskfs,
Samuel Thibault <=
- [hurd] 03/08: UFS is no more., Samuel Thibault, 2013/09/28
- [hurd] 02/08: * ChangeLog: Don't refer to serverboot/ChangeLog; it is no more., Samuel Thibault, 2013/09/28