]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pam_winbind: Fix Bug 15771
authorVolker Lendecke <vl@samba.org>
Mon, 16 Dec 2024 16:49:43 +0000 (17:49 +0100)
committerJule Anger <janger@samba.org>
Thu, 19 Dec 2024 10:40:28 +0000 (10:40 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=15771

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 7e8bfe738a3d91b0724d57ed54acf40ebe026c14)

Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Thu Dec 19 10:40:28 UTC 2024 on atb-devel-224

nsswitch/pam_winbind.c

index 5e5cf0af8b89158d8bfe391f514667929861d885..96e055793d4208f5e8112d952f7f40eb349035c0 100644 (file)
@@ -2525,6 +2525,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;
        }