From d0739d436e50f23ce8378cd3645f6cac74afbc13 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 19:21:56 -0700 Subject: s3: Remove talloc_autofree_context() from nametouid() pass is freed a few lines down --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 28336512df..90fcb3773e 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1306,7 +1306,7 @@ uid_t nametouid(const char *name) char *p; uid_t u; - pass = getpwnam_alloc(talloc_autofree_context(), name); + pass = getpwnam_alloc(talloc_tos(), name); if (pass) { u = pass->pw_uid; TALLOC_FREE(pass); -- cgit