s3: Remove talloc_autofree_context() from lookup_unix_user_name()
authorVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2010 23:24:16 +0000 (16:24 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 01:29:28 +0000 (03:29 +0200)
pwd is freed in this routine immediately

source3/passdb/util_unixsids.c

index 1bd07c7a2f487ec9f2fd02072aeb52b1ca9f205a..24d2c454490162746723be38bf109c90d3505c31 100644 (file)
@@ -64,7 +64,7 @@ bool lookup_unix_user_name(const char *name, struct dom_sid *sid)
        struct passwd *pwd;
        bool ret;
 
-       pwd = getpwnam_alloc(talloc_autofree_context(), name);
+       pwd = getpwnam_alloc(talloc_tos(), name);
        if (pwd == NULL) {
                return False;
        }