From 6ab0d8b9981e9e2ab07993069139ec8f9fca9696 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 8 Mar 2011 21:38:21 +0100 Subject: idmap-autorid: Remove an unused variable Signed-off-by: Christian Ambach --- source3/winbindd/idmap_autorid.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source3/winbindd') 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; } -- cgit