From da0229191ef16de7f13841348d694a9fa1c3ed7e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 7 Feb 2025 07:33:39 +0100 Subject: [PATCH] [core,nla] fix possible memory leak when no username is used a NULL identity should be passed. Free up this identity before setting it NULL --- libfreerdp/core/nla.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index f08899d1f..a7a0a0228 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -364,6 +364,7 @@ static BOOL nla_client_setup_identity(rdpNla* nla) if (!settings->Username) { sspi_FreeAuthIdentity(nla->identity); + free(nla->identity); nla->identity = NULL; } else if (settings->SmartcardLogon)