[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 16/87: libnetfs: fix memory leak
From: |
Samuel Thibault |
Subject: |
[hurd] 16/87: libnetfs: fix memory leak |
Date: |
Sun, 09 Nov 2014 11:05:00 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 9d8a274e00cf01d2a2ea137f5dbd6f5edb37c15b
Author: Justus Winter <address@hidden>
Date: Sat May 31 09:16:00 2014 +0200
libnetfs: fix memory leak
* libnetfs/trans-callback.c (_netfs_translator_callback2_fn): Free
user if creating the protid failed.
---
libnetfs/trans-callback.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libnetfs/trans-callback.c b/libnetfs/trans-callback.c
index 4dec162..f4f0c62 100644
--- a/libnetfs/trans-callback.c
+++ b/libnetfs/trans-callback.c
@@ -74,7 +74,10 @@ _netfs_translator_callback2_fn (void *cookie1, void
*cookie2, int flags,
return 0;
}
else
- return errno;
+ {
+ iohelp_free_iouser (user);
+ return errno;
+ }
}
fshelp_fetch_root_callback1_t _netfs_translator_callback1 =
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 68/87: procfs: implement /proc/filesystems, (continued)
- [hurd] 68/87: procfs: implement /proc/filesystems, Samuel Thibault, 2014/11/09
- [hurd] 71/87: procfs: reorganize rootdir.c, Samuel Thibault, 2014/11/09
- [hurd] 78/87: Fix proc_getprocinfo calls, Samuel Thibault, 2014/11/09
- [hurd] 80/87: Fix actual procinfo_t type, Samuel Thibault, 2014/11/09
- [hurd] 83/87: Use a mere weak attribute instead of a weak alias, Samuel Thibault, 2014/11/09
- [hurd] 17/87: include: use unsigned literal in combination with binary not, Samuel Thibault, 2014/11/09
- [hurd] 79/87: Fix proc_getprocinfo calls, Samuel Thibault, 2014/11/09
- [hurd] 20/87: libdiskfs: avoid implicit integer conversion, Samuel Thibault, 2014/11/09
- [hurd] 67/87: procfs: implement /proc/N/maps, Samuel Thibault, 2014/11/09
- [hurd] 69/87: procfs: do not test whether /hurd/mtab exists, Samuel Thibault, 2014/11/09
- [hurd] 16/87: libnetfs: fix memory leak,
Samuel Thibault <=
- [hurd] 13/87: Fix buffer allocation on io_read, Samuel Thibault, 2014/11/09
- [hurd] 77/87: pfinet: fix path in comment, Samuel Thibault, 2014/11/09
- [hurd] 76/87: libports: lock-less reference counting for port_info objects, Samuel Thibault, 2014/11/09
- [hurd] 81/87: Fix unlocking translator list, Samuel Thibault, 2014/11/09
- [hurd] 63/87: Update NEWS file, Samuel Thibault, 2014/11/09
- [hurd] 09/87: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/11/09
- [hurd] 85/87: mach-defpager: use protected payloads for object lookups, Samuel Thibault, 2014/11/09
- [hurd] 87/87: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/11/09
- [hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'., Samuel Thibault, 2014/11/09
- [hurd] 10/87: libstore: provide function declaration until available upstream, Samuel Thibault, 2014/11/09