afs: Use talloc_stackframe() instead of talloc_init()
authorKai Blin <kai@samba.org>
Sat, 19 Jan 2008 11:27:31 +0000 (12:27 +0100)
committerKai Blin <kai@samba.org>
Sat, 19 Jan 2008 12:17:09 +0000 (13:17 +0100)
Thanks to vl for pointing this out.
(This used to be commit 76cf5a979bf3014b1de660520e538546b3676b23)

source3/lib/afs.c

index b3d590bf245d0890cd83ec2ce067f698219e0ec1..9f5d81f44280cf39a6027facb3a781e62c1568a0 100644 (file)
@@ -48,7 +48,7 @@ static char *afs_encode_token(const char *cell, const DATA_BLOB ticket,
        char *base64_key;
        TALLOC_CTX *mem_ctx;
 
-       mem_ctx = talloc_init("afs_encode_token");
+       mem_ctx = talloc_stackframe();
        if (mem_ctx == NULL)
                goto done;