yet another memory leak in winbindd

kawasa_r at itg.hitachi.co.jp kawasa_r at itg.hitachi.co.jp
Fri May 7 14:34:26 GMT 2004


If gidNumber and uidNumber is undefined when winbind daemon is started,
winbind daemon leaks some memory. 
The following patch added free management.

Index: samba-302/source/sam/idmap_ldap.c
===================================================================
RCS file: /cvs/samba-302/source/sam/idmap_ldap.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -r1.4 -r1.5
750c750,755
< 		rc = smbldap_modify(ldap_state.smbldap_state, lp_ldap_idmap_suffix(), mods);
---
> 		if (mods) {
> 			rc = smbldap_modify(ldap_state.smbldap_state, lp_ldap_idmap_suffix(), mods);
> 			ldap_mods_free( mods, True );
> 		} else {
> 			return NT_STATUS_UNSUCCESSFUL;
> 		}


More information about the samba-technical mailing list