From 6bea5bea4ccd4eb45b9cd4dd1e16538b14e2180e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 01:43:05 +0000 Subject: r2643: convert more of the auth subsyystem to the new talloc methods. This also fixes a memory leak found with --leak-check. (This used to be commit f19201ea274f0a542314c61c4af676197bf154ad) --- source4/utils/ntlm_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/utils') diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index 576996502d..e83aa76cf4 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -433,7 +433,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode, reply_arg = talloc_asprintf(*gensec_state, "%s%s%s", session_info->server_info->domain, lp_winbind_separator(), session_info->server_info->account_name); - talloc_destroy(session_info->mem_ctx); + talloc_free(session_info); } } else if ((*gensec_state)->gensec_role == GENSEC_CLIENT) { reply_code = "AF"; -- cgit