]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - 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
diff --git a/src/patches/samba/samba-3.6.99-fix_winbind_cache_memory_leak.patch b/src/patches/samba/samba-3.6.99-fix_winbind_cache_memory_leak.patch
new file mode 100644 (file)
index 0000000..d25f9ff
--- /dev/null
@@ -0,0 +1,29 @@
+From 7aa2d48a4952980316dc0418d79053cfc9fea2ed Mon Sep 17 00:00:00 2001
+From: Volker Lendecke <vl@samba.org>
+Date: Sun, 20 Oct 2013 17:25:27 +0200
+Subject: [PATCH] winbind3: Fix CID 241468 Resource leak
+
+We were leaking centry in this error case
+
+Signed-off-by: Volker Lendecke <vl@samba.org>
+Reviewed-by: Jeremy Allison <jra@samba.org>
+(cherry picked from commit 71c8cd19cf079c7e1462a9ca4432725e3623f7cd)
+---
+ source3/winbindd/winbindd_cache.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
+index 82c8087..00bd034 100644
+--- a/source3/winbindd/winbindd_cache.c
++++ b/source3/winbindd/winbindd_cache.c
+@@ -2076,6 +2076,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
+               } else {
+                       /* something's definitely wrong */
+                       result = centry->status;
++                      centry_free(centry);
+                       goto error;
+               }
+-- 
+2.5.5
+