The following is the patch to resolve mem leaks in ldapsam_modify_entry(..) in pdb_ldap.c. (3.0.23d) --- pdb_ldap.c 2006-11-14 06:42:14.000000000 -0800 +++ pdb_ldap.c.new 2006-11-28 16:52:09.980061000 -0800 @@ -1592,12 +1592,14 @@ } if (push_utf8_allocate(&utf8_dn, dn) == (size_t)-1) { + SAFE_FREE(utf8_password); return NT_STATUS_NO_MEMORY; } if ((ber = ber_alloc_t(LBER_USE_DER))==NULL) { DEBUG(0,("ber_alloc_t returns NULL\n")); SAFE_FREE(utf8_password); + SAFE_FREE(utf8_dn); return NT_STATUS_UNSUCCESSFUL; }
Fixed with r19943 -- thanks. Volker