]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/samba/samba-3.6.99-fix_winbind_cache_memory_leak.patch
fireinfo: Import latest patches
[ipfire-2.x.git] / src / patches / samba / samba-3.6.99-fix_winbind_cache_memory_leak.patch
CommitLineData
1d13e637
AF
1From 7aa2d48a4952980316dc0418d79053cfc9fea2ed Mon Sep 17 00:00:00 2001
2From: Volker Lendecke <vl@samba.org>
3Date: Sun, 20 Oct 2013 17:25:27 +0200
4Subject: [PATCH] winbind3: Fix CID 241468 Resource leak
5
6We were leaking centry in this error case
7
8Signed-off-by: Volker Lendecke <vl@samba.org>
9Reviewed-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
15diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
16index 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--
282.5.5
29