summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/idmap_ldap.c')
-rw-r--r--source3/winbindd/idmap_ldap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c
index 8444d01620..aaac75f101 100644
--- a/source3/winbindd/idmap_ldap.c
+++ b/source3/winbindd/idmap_ldap.c
@@ -513,9 +513,10 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom,
goto done;
}
- /* set the destructor on the context, so that resource are properly
- freed if the contexts is released */
-
+ /*
+ * Set the destructor on the context, so that resources are
+ * properly freed when the context is released.
+ */
talloc_set_destructor(ctx, idmap_ldap_close_destructor);
dom->private_data = ctx;