]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r5481: Fix a memleak
authorVolker Lendecke <vlendec@samba.org>
Mon, 21 Feb 2005 11:11:13 +0000 (11:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:42 +0000 (10:55 -0500)
source/passdb/pdb_ldap.c

index e8facf1c2ed77c7facc70c44a9bc17cf2c5e5b28..0a0426ef2ab93af3e7f6058b114c9888ae419027 100644 (file)
@@ -3268,6 +3268,8 @@ and will risk BDCs having inconsistant SIDs\n"));
        }
 
        ldap_state->domain_dn = smb_xstrdup(dn);
+       ldap_memfree(dn);
+
        if (smbldap_get_single_pstring(ldap_state->smbldap_state->ldap_struct, entry, 
                                 get_userattr_key2string(ldap_state->schema_ver, LDAP_ATTR_USER_SID), 
                                 domain_sid_string)) {