summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 19:21:56 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 17:36:40 +0200
commitd0739d436e50f23ce8378cd3645f6cac74afbc13 (patch)
tree564f8dbac0882038d16d90e933ecd048172f0e5f /source3/lib
parentd4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1 (diff)
downloadsamba-d0739d436e50f23ce8378cd3645f6cac74afbc13.tar.gz
samba-d0739d436e50f23ce8378cd3645f6cac74afbc13.tar.bz2
samba-d0739d436e50f23ce8378cd3645f6cac74afbc13.zip
s3: Remove talloc_autofree_context() from nametouid()
pass is freed a few lines down
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
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);