r12663: Fix a memleak
authorVolker Lendecke <vlendec@samba.org>
Sun, 1 Jan 2006 18:30:44 +0000 (18:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:06:01 +0000 (11:06 -0500)
(This used to be commit 3ee6b732f4210e6de6716364ec166f44f29f4463)

source3/passdb/pdb_ldap.c

index 0bf051eecda1d69bdd1b14b15780a63c659b7fcc..b35ce18eee5760bfc86b266024052771c8403aad 100644 (file)
@@ -3638,6 +3638,10 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods,
                goto done;
        }
 
+       if (msg != NULL) {
+               ldap_msgfree(msg);
+       }
+
        /* Same game for groups */
 
        {