From d3ab04d786391ec4e125bcb0589583d9069bb81e Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 17 Aug 2018 13:52:38 +0200 Subject: [PATCH] channels/remdesk: Fix leak found by covscan leaked_storage: Variable "pass" going out of scope leaks the storage it points to. --- channels/remdesk/client/remdesk_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/remdesk/client/remdesk_main.c b/channels/remdesk/client/remdesk_main.c index febe6a2..ca573de 100644 --- a/channels/remdesk/client/remdesk_main.c +++ b/channels/remdesk/client/remdesk_main.c @@ -109,6 +109,7 @@ static UINT remdesk_generate_expert_blob(remdeskPlugin* remdesk) } remdesk->ExpertBlob = freerdp_assistance_construct_expert_blob(name, pass); + free(pass); if (!remdesk->ExpertBlob) { -- 2.7.4