Pick a fix for memory leak in winbindd_group.c from
http://lists.samba.org/archive/samba-technical/2007-February/051849.html
--
Author: jra
Date: 2007-03-01 02:43:33 +0000 (Thu, 01 Mar 2007)
New Revision: 21609

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21609

Log:
Fix memory leaks in error code paths (and one in winbindd_group.c).
Patch from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.

diff -rpu samba-3.0.24/source/nsswitch/winbindd_group.c samba-3.0.24.osstech/source/nsswitch/winbindd_group.c
--- samba-3.0.24/source/nsswitch/winbindd_group.c	2007-02-05 03:59:14.000000000 +0900
+++ samba-3.0.24.osstech/source/nsswitch/winbindd_group.c	2007-03-01 12:46:58.504117522 +0900
@@ -84,10 +84,12 @@ static BOOL fill_grent_mem(struct winbin
 	 * from more than one domain, ie aliases. Thus we have to work it out
 	 * ourselves in a special routine. */
 
-	if (domain->internal)
-		return fill_passdb_alias_grmem(domain, group_sid,
+	if (domain->internal) {
+		result = fill_passdb_alias_grmem(domain, group_sid,
 					       num_gr_mem,
 					       gr_mem, gr_mem_len);
+		goto done;
+	}
 	
 	if ( !((group_name_type==SID_NAME_DOM_GRP) ||
 		((group_name_type==SID_NAME_ALIAS) && domain->primary)) )
