summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_pw.c b/source3/lib/util_pw.c
index 4d4041cd5f..5ba5fde0eb 100644
--- a/source3/lib/util_pw.c
+++ b/source3/lib/util_pw.c
@@ -58,7 +58,7 @@ struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name)
return NULL;
}
- for_cache = tcopy_passwd(talloc_autofree_context(), pw);
+ for_cache = tcopy_passwd(talloc_tos(), pw);
if (for_cache == NULL) {
return NULL;
}