]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/samba/samba-3.6.99-fix_winbind_cache_memory_leak.patch
samba: add current RHEL6 patches
[ipfire-2.x.git] / src / patches / samba / samba-3.6.99-fix_winbind_cache_memory_leak.patch
1 From 7aa2d48a4952980316dc0418d79053cfc9fea2ed Mon Sep 17 00:00:00 2001
2 From: Volker Lendecke <vl@samba.org>
3 Date: Sun, 20 Oct 2013 17:25:27 +0200
4 Subject: [PATCH] winbind3: Fix CID 241468 Resource leak
5
6 We were leaking centry in this error case
7
8 Signed-off-by: Volker Lendecke <vl@samba.org>
9 Reviewed-by: Jeremy Allison <jra@samba.org>
10 (cherry picked from commit 71c8cd19cf079c7e1462a9ca4432725e3623f7cd)
11 ---
12 source3/winbindd/winbindd_cache.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
16 index 82c8087..00bd034 100644
17 --- a/source3/winbindd/winbindd_cache.c
18 +++ b/source3/winbindd/winbindd_cache.c
19 @@ -2076,6 +2076,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
20 } else {
21 /* something's definitely wrong */
22 result = centry->status;
23 + centry_free(centry);
24 goto error;
25 }
26
27 --
28 2.5.5
29