s3:auth: call wbcFreeMemory(info) in auth3_generate_session_info_pac()
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Dec 2021 17:24:16 +0000 (18:24 +0100)
committerJule Anger <janger@samba.org>
Tue, 31 Jan 2023 11:45:17 +0000 (11:45 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15286

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit e27084f5d8c3a151c5d0b266118f0d71b641dc85)

source3/auth/auth_generic.c

index ff51307e43a1dddc2eda70a0c6b94b074d1cdae0..6c61eb4e8270f830946ad406bf654f536f2cf848 100644 (file)
@@ -143,6 +143,7 @@ static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx,
                                                          info->account_name,
                                                          info->domain_name,
                                                          info, &server_info);
+               wbcFreeMemory(info);
                if (!NT_STATUS_IS_OK(status)) {
                        DEBUG(10, ("make_server_info_wbcAuthUserInfo failed: %s\n",
                                   nt_errstr(status)));