r6770: Fix bug 2705. Thanks, John, for beating my stuff :-)
authorVolker Lendecke <vlendec@samba.org>
Fri, 13 May 2005 09:10:00 +0000 (09:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:54 +0000 (10:56 -0500)
Volker
(This used to be commit f406dda687b457b8247151cf86d39f03608b5503)

source3/passdb/pdb_ldap.c

index d8c7565b64632d3bd8b46058f18d792ed1cae8b1..eb459f963b8ac2b82ef2d9efd08210268dd12479 100644 (file)
@@ -3098,8 +3098,6 @@ static NTSTATUS ldapsam_alias_memberships(struct pdb_methods *methods,
        rc = smbldap_search(ldap_state->smbldap_state, lp_ldap_group_suffix(),
                            LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result);
 
-       talloc_destroy(mem_ctx);
-
        if (rc != LDAP_SUCCESS)
                return NT_STATUS_UNSUCCESSFUL;