diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-08 21:38:21 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-18 15:46:36 +0100 |
commit | 6ab0d8b9981e9e2ab07993069139ec8f9fca9696 (patch) | |
tree | aec57c30f327670dedbba02eaa97ac44e252130e | |
parent | d1970a8da9aef3e379bba38bf7d8820cce0d1e6a (diff) | |
download | samba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.tar.gz samba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.tar.bz2 samba-6ab0d8b9981e9e2ab07993069139ec8f9fca9696.zip |
idmap-autorid: Remove an unused variable
Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 786bdfc5f1..9fd7f15095 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -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; } |