]> 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)
committerVolker Lendecke <vl@samba.org>
Wed, 18 Dec 2024 08:25:34 +0000 (08:25 +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>
nsswitch/pam_winbind.c

index 67f351c056fb8edf38dfb8f5cc80013157254b3a..e1581427856646a725e393078f27061971372c69 100644 (file)
@@ -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;
        }