summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/pdb_ldap.c')
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index d8c7565b64..eb459f963b 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -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;