s3:idmap_rid: remove unused talloc context var from idmap_rid_unixids_to_sids()
authorMichael Adam <obnox@samba.org>
Tue, 22 Jun 2010 10:30:58 +0000 (12:30 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:40:37 +0000 (12:40 +0200)
source3/winbindd/idmap_rid.c

index 7cbd4650f3592fc51d211edb04726f7509693301..5b7073c1d15a157a6d994756de57645503b15868 100644 (file)
@@ -168,7 +168,6 @@ static NTSTATUS idmap_rid_sid_to_id(TALLOC_CTX *memctx, struct idmap_rid_context
 static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids)
 {
        struct idmap_rid_context *ridctx;
-       TALLOC_CTX *ctx;
        NTSTATUS ret;
        int i;
 
@@ -179,12 +178,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma
        
        ridctx = talloc_get_type(dom->private_data, struct idmap_rid_context);
 
-       ctx = talloc_new(dom);
-       if ( ! ctx) {
-               DEBUG(0, ("Out of memory!\n"));
-               return NT_STATUS_NO_MEMORY;
-       }
-
        for (i = 0; ids[i]; i++) {
 
                ret = idmap_rid_id_to_sid(ridctx, ids[i]);
@@ -196,7 +189,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma
                }
        }
 
-       talloc_free(ctx);
        return NT_STATUS_OK;
 }