From 87c04355dd1a1aee2876ba2763f69e6c30e9ca87 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 16 Dec 2021 18:24:16 +0100 Subject: [PATCH] s3:auth: call wbcFreeMemory(info) in auth3_generate_session_info_pac() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15286 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison (cherry picked from commit e27084f5d8c3a151c5d0b266118f0d71b641dc85) --- source3/auth/auth_generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c index ff51307e43a..6c61eb4e827 100644 --- a/source3/auth/auth_generic.c +++ b/source3/auth/auth_generic.c @@ -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))); -- 2.34.1