s3:idmap_rid: remove unused talloc context var from idmap_rid_sids_to_unixids()
authorMichael Adam <obnox@samba.org>
Tue, 22 Jun 2010 10:32:35 +0000 (12:32 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:55 +0000 (02:10 +0200)
source3/winbindd/idmap_rid.c

index f2b0609f50087f91b397f8ac2549c085d1ff07c1..6d57ace4988e2fbdd0f0dc4bdf9300c3434f4767 100644 (file)
@@ -199,7 +199,6 @@ static NTSTATUS idmap_rid_unixids_to_sids(struct idmap_domain *dom, struct id_ma
 static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_map **ids)
 {
        struct idmap_rid_context *ridctx;
-       TALLOC_CTX *ctx;
        NTSTATUS ret;
        int i;
 
@@ -210,12 +209,6 @@ static NTSTATUS idmap_rid_sids_to_unixids(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_sid_to_id(ridctx, ids[i]);
@@ -228,7 +221,6 @@ static NTSTATUS idmap_rid_sids_to_unixids(struct idmap_domain *dom, struct id_ma
                }
        }
 
-       talloc_free(ctx);
        return NT_STATUS_OK;
 }