From: Volker Lendecke Date: Mon, 16 Dec 2024 16:49:43 +0000 (+0100) Subject: pam_winbind: Fix Bug 15771 X-Git-Tag: tdb-1.4.13~281 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e8bfe738a3d91b0724d57ed54acf40ebe026c14;p=thirdparty%2Fsamba.git pam_winbind: Fix Bug 15771 Bug: https://bugzilla.samba.org/show_bug.cgi?id=15771 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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; }