[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
- [hurd] branch upstream updated (223b7da -> 90b039d), Samuel Thibault, 2013/11/02
- [hurd] 01/26: Check for negative sizes in file_set_size, Samuel Thibault, 2013/11/02
- [hurd] 03/26: Fix memory leak in exec, Samuel Thibault, 2013/11/02
- [hurd] 02/26: Fix memory leak in libnetfs,
Samuel Thibault <=
- [hurd] 10/26: console-client: minor stylistic fix, Samuel Thibault, 2013/11/02
- [hurd] 04/26: Revert "tmpfs: drop privileges in the tmpfs translator", Samuel Thibault, 2013/11/02
- [hurd] 26/26: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2013/11/02
- [hurd] 09/26: console-client: fix error handling, Samuel Thibault, 2013/11/02
- [hurd] 11/26: console-client: replace function epilogue with console_exit, Samuel Thibault, 2013/11/02
- [hurd] 24/26: Fix use after free, Samuel Thibault, 2013/11/02
- [hurd] 12/26: term: fix read on a closed PTY, Samuel Thibault, 2013/11/02
- [hurd] 23/26: libshouldbeinlibc: fix error handling in maptime_map, Samuel Thibault, 2013/11/02
- [hurd] 05/26: trans: rename a global variable, Samuel Thibault, 2013/11/02
- [hurd] 07/26: console-client: remove the pid file on clean exits, Samuel Thibault, 2013/11/02