From 6e9fb079583fb2781987ee40eda47a956a5c4e82 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 8 Mar 2011 21:48:44 +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') diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index e814d0da1f..437c03800d 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -225,7 +225,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids) { struct autorid_global_config *globalcfg; - TALLOC_CTX *ctx; NTSTATUS ret; int i; @@ -237,12 +236,6 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom, globalcfg = talloc_get_type(dom->private_data, struct autorid_global_config); - 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_autorid_id_to_sid(globalcfg, ids[i]); @@ -255,14 +248,10 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom, goto failure; } } - - talloc_free(ctx); return NT_STATUS_OK; failure: - talloc_free(ctx); return ret; - } /********************************** -- cgit