s3: Remove talloc_autofree_context() from nametouid()
authorVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 02:21:56 +0000 (19:21 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 15:36:40 +0000 (17:36 +0200)
pass is freed a few lines down

source3/lib/util.c

index 28336512df9ec24f4a0026eae1937086ed9c3e23..90fcb3773e72228c710f7ed5b82cd091fb5b3038 100644 (file)
@@ -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);