From 7e8bfe738a3d91b0724d57ed54acf40ebe026c14 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 16 Dec 2024 17:49:43 +0100 Subject: [PATCH] pam_winbind: Fix Bug 15771 Bug: https://bugzilla.samba.org/show_bug.cgi?id=15771 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- nsswitch/pam_winbind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 67f351c056f..e1581427856 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -2527,6 +2527,7 @@ static char* winbind_upn_to_username(struct pwb_context *ctx, /* Convert the UPN to a SID */ wbc_status = wbcCtxLookupName(ctx->wbc_ctx, domain, name, &sid, &type); + TALLOC_FREE(name); if (!WBC_ERROR_IS_OK(wbc_status)) { return NULL; }