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

index aeb4f204cd39f12aefc6498a89d4ac1a546f639e..99e7414c7ff5b0215b111f47423ac830604a2e88 100644 (file)
@@ -938,13 +938,6 @@ static NTSTATUS idmap_tdb_sids_to_unixids(struct idmap_domain *dom, struct id_ma
 
 static NTSTATUS idmap_tdb_close(struct idmap_domain *dom)
 {
-       struct idmap_tdb_context *ctx;
-
-       if (dom->private_data) {
-               ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context);
-
-               TALLOC_FREE(ctx->db);
-       }
        return NT_STATUS_OK;
 }