From d4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 19:18:46 -0700 Subject: s3: Remove talloc_autofree_context() from guest_user_info() pwd is freed a few lines down --- source3/passdb/pdb_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 9f3a1725a4..11b70f2bcb 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -352,7 +352,8 @@ static bool guest_user_info( struct samu *user ) NTSTATUS result; const char *guestname = lp_guestaccount(); - if ( !(pwd = getpwnam_alloc(talloc_autofree_context(), guestname ) ) ) { + pwd = getpwnam_alloc(talloc_tos(), guestname); + if (pwd == NULL) { DEBUG(0,("guest_user_info: Unable to locate guest account [%s]!\n", guestname)); return False; -- cgit