summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_autorid.c11
1 files changed, 0 insertions, 11 deletions
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;
-
}
/**********************************