s3-idmap-ldap: private_data is a talloc child of dom
authorVolker Lendecke <vl@samba.org>
Sat, 26 Feb 2011 12:53:12 +0000 (13:53 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 6 Mar 2011 11:51:02 +0000 (12:51 +0100)
source3/winbindd/idmap_ldap.c

index aea5d6acf5efb2acd4475d6bebd0c205b1169065..56d2793c01e489b75dcb242f3e1d0491a3cf04d7 100644 (file)
@@ -1151,16 +1151,6 @@ done:
 
 static NTSTATUS idmap_ldap_close(struct idmap_domain *dom)
 {
-       struct idmap_ldap_context *ctx;
-
-       if (dom->private_data) {
-               ctx = talloc_get_type(dom->private_data,
-                                     struct idmap_ldap_context);
-
-               talloc_free(ctx);
-               dom->private_data = NULL;
-       }
-
        return NT_STATUS_OK;
 }