idmap-autorid: Remove an unused variable
authorVolker Lendecke <vl@samba.org>
Tue, 8 Mar 2011 20:38:21 +0000 (21:38 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 18 Mar 2011 14:46:36 +0000 (15:46 +0100)
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
source3/winbindd/idmap_autorid.c

index 786bdfc5f1003f3624153f98e32bb3a297bf37e1..9fd7f15095a0a731e7ea1b3c27a80280cc41901e 100644 (file)
@@ -271,17 +271,9 @@ static NTSTATUS idmap_autorid_sids_to_unixids(struct idmap_domain *dom,
                                              struct id_map **ids)
 {
        struct autorid_global_config *global;
-       TALLOC_CTX *ctx;
        NTSTATUS ret;
        int i;
 
-       ctx = talloc_new(dom);
-       if (!ctx) {
-               DEBUG(0, ("Out of memory!\n"));
-               ret = NT_STATUS_NO_MEMORY;
-               goto failure;
-       }
-
        /* initialize the status to avoid surprise */
        for (i = 0; ids[i]; i++) {
                ids[i]->status = ID_UNKNOWN;
@@ -339,12 +331,9 @@ static NTSTATUS idmap_autorid_sids_to_unixids(struct idmap_domain *dom,
                        goto failure;
                }
        }
-
-       talloc_free(ctx);
        return NT_STATUS_OK;
 
       failure:
-       talloc_free(ctx);
        return ret;
 
 }