s3: Remove talloc_autofree_context() from getpwnam_alloc()
authorVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 02:16:53 +0000 (19:16 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 15:36:40 +0000 (17:36 +0200)
This is given to the memcache a few lines down

source3/lib/util_pw.c

index 4d4041cd5fdb6f8d85eab66de7cf8dc3552d1914..5ba5fde0ebecd1e83e0b351edc4ed2183102e418 100644 (file)
@@ -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;
        }